XAMPP tmp folder oversized

zur4ik picture zur4ik · Oct 11, 2013 · Viewed 15.5k times · Source

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?

Answer

hek2mgl picture hek2mgl · Oct 11, 2013

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