Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XAMPP tmp folder oversized

Tags:

I'm running some php file every 2 minutes via Windows Task Scheduler, but time-to-time I get notification about low space on my drive D:.

After check I found that in XAMPP tmp folder located on D:\XAMPP\tmp are lot of files with names similar to: cachegrind.out.1381478803-D__xampp_htdocs_Real_Estate_App_index_php and size of each file is more than 144 MB.

These files have content:

==== NEW PROFILING FILE ============================================== version: 1 creator: xdebug 2.2.3 cmd: D:\xampp\htdocs\Real Estate App\index.php part: 1 positions: line  events: Time  fl=php:internal fn=php::header 3 0  fl=php:internal fn=php::define 45 0  ... 

I understand that this is caused because of xdebug, but how to stop this process I don't know. Mybe someone had same problem? Any ideas?

like image 221
zur4ik Avatar asked Oct 11 '13 08:10

zur4ik


People also ask

Does XAMPP restrict writable permissions to all folders in htdocs?

It seems that xampp has restricted writable permissions to all folders in htdocs. I cannot change it to writable in windows, it switches back to read only every time i try.

How do I install XAMPP?

XAMPP is an easy to install Apache distribution containing MariaDB, PHP, and Perl. Just download and start the installer. It's that easy. XAMPP for Windows 7.1.32, 7.2.22 & 7.3.9 Version.

What are the system requirements to install WordPress on XAMPP?

Mac OS X 10.6 or later. Bitnami provides a free all-in-one tool to install WordPress on top of XAMPP. There is no real manual or handbook for XAMPP. We wrote the documentation in the form of FAQs.

Is there a manual or handbook for XAMPP?

Bitnami provides a free all-in-one tool to install WordPress on top of XAMPP. There is no real manual or handbook for XAMPP. We wrote the documentation in the form of FAQs. Have a burning question that's not answered here? Try the Forums or Stack Overflow. Bitnami provides a free all-in-one tool to install WordPress on top of XAMPP.


2 Answers

You have xdebug profiling enabled. If this is enabled xdebug will write runtime information about the scripts into systems temp folder (by default). Disable it in your php.ini (or in the xdebug.ini, depends on where did you set it)

xdebug.profiler_enable=Off 

and restart the web server

like image 116
hek2mgl Avatar answered Sep 25 '22 19:09

hek2mgl


Yes found out that turning xdebug.profiler to off does part of the trick

xdebug.profiler_enable= 0 

Then also turn off also eAccelerator which precomplies codes

; The directory that is used for disk cache. eAccelerator stores precompiled ; code, session data, content and user entries here. The same data can be ; stored in shared memory also (for more quick access).

eaccelerator.enable="0" 

Then stop apache

Delete the files in the tmp dir

Resart apache does the trick

like image 30
Pascal Avatar answered Sep 21 '22 19:09

Pascal