/tmp directory was full of thousands of PHP session files.

This topic contains 5 replies, has 2 voices, and was last updated by  Jeff Adams 6 years, 7 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #452990

    Jeff Adams
    Free User
    Post count: 1780

    I’m using a VPS and last week when I added a few listings to my site VeganLinked.com I got a bunch of messages from the server. I sent the server tech people a message:

    What does “you currently use 93.99% of its available inodes” mean? I’m getting a lot of these kind of emails lately. It seems like a problem. First, late last week the site hung up due to some server issue or RAM issue. Since that ticket was supposedly resolved I’ve been getting these emails (see attached). Please help resolve this.

    They responded:

    Hi Jeff,

    Thank you for contacting us, and we’ll be happy to help. I’ve found that your /tmp directory was full of thousands of PHP session files. I’ve removed these and there are now plenty of available inodes on the server. To prevent this from happening going forward, please make sure that all PHP sessions are being closed properly. If sessions are getting left open then the session files will eventually stack up and cause disk inodes to run low again.

    I hope that this is helpful, and should you have any further questions or concerns at all, please don’t hesitate to let us know.

    Regards,
    Jacob | L3 Support Administrator

    When I responded stating I don’t really understand they said:

    Please check with your developer or check the link pasted below:

    https://www.servage.net/blog/2014/12/02/ending-a-session-properly-in-php/

    Please let us know if we can be of further assistance.

    Regards,
    Vivek | L2 Support Technician

    #452991

    Jeff Adams
    Free User
    Post count: 1780
    This reply has been marked as private.
    #453026

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Jeff,

    Sessions are created when a user visits your site.
    Its the servers job to handel garbage collection and empty these at set times.
    I would guess either you have a server problem not running garbage collection or there is something causing a timeout for users and its not finishing the write of the session, i guess most likely the first one.

    Thanks,

    Stiofan

    #453384

    Jeff Adams
    Free User
    Post count: 1780

    Thanks, i’ll respond back to the hosting provider then with what you said and see where it goes from there.

    #453393

    Jeff Adams
    Free User
    Post count: 1780

    This was their response:

    You need to optimise your website and make sure that all the scripts/plugins/themes are updated as well. Also, please use complex passwords to secure your website. If so, we can prevent continuous network connections to your website and creating sessions files. Please let us know If there will be any issue with inode usage and sessions files. We’ll assist you to delete it and make your account normal. Please do the steps mentioned below.

    – manually review account scripts (or have a developer do it), in order to catch anything that an automated scan might miss
    – delete any old and unused scripts, as these are often a target for malware infections
    – delete any and all plugins and/or themes from any unverified sources
    – make sure the file permissions are setup securely; directories should be set to 755 and files set to 644
    – update your CMS to the latest stable version available

    I only use GD, UWP and plugins very minimal plugins suggested by GD team. Everything is up to date.

    There is one plugin that I had developed though, but it’s very small and I haven’t even started using it yet.

    #453662

    Jeff Adams
    Free User
    Post count: 1780

    anymore thoughts on this?

Viewing 6 posts - 1 through 6 (of 6 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount