Forums

MobilePress caused 55,000+ files in c:\windows\temp (2 posts)

  1. jasonboche
    Member
    Posted 2 years ago #

    A while after installing MobilePress 1.0.3, my IIS server locked up. I rebooted it and all was well. A while later, it locked up again. Upon further investigation, I found 55,000+ files in the c:\windows\temp\ folder and new files were popping in there at a rate of a few per minute.

    Each of the 55,000 files looked like:
    sess_1dq5436rb4m9b399cojhnmitd1
    where the prefix of sess_ is common but the rest is random.

    Using Sysinternals procmon.exe, I was able to identify right away that the process responsible for creating the files was w3wp.exe which pointed me to IIS. However, I wasn't sure why IIS would begin doing this after being stable for a long time.

    Searches on the internet said the files were being generated by PHP and indicated new user sessions as visitors hit my blog. That confirmed the fact that these were coming from IIS and the blog but still no tell tale reason why.

    Then I opened up one of the files and it showed:
    SESS_MOBILE_BROWSER|s:6:"mobile";SESS_MOBILE_ACTIVE|b:0;SESS_MOBILE_THEME|s:7:"default";

    That was enough to jog my memory that I had recently installed the MobilePress plugin.

    Removing the plugin immediately resolved the issues and the temp files are no longer created.

    Jas

  2. Otto
    Tech Ninja
    Posted 2 years ago #

    If you're getting too many sessions in some code that uses them, then you'll likely need to configure your PHP.INI file to clean them up properly. The gc_maxlifetime and the gc_probability/gc_divisor are what I'd examine first.

    More info on sessions here: http://www.php.net/session

Topic Closed

This topic has been closed to new replies.

About this Topic