Author Topic: Trade X & Inode limitations  (Read 1142 times)

0 Members and 1 Guest are viewing this topic.

Offline Taebok

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Trade X & Inode limitations
« on: September 14, 2013, 06:31:52 PM »
Hi,

I recently got a message from my host that I'd reached the limit for the number of inodes on my account (which had caused my cron jobs to stop working)
They said that most of the inodes created were in the tx/data/sessions/ directory (Trade X) which had created 600k+ of them.

Folder Inodes

0 43025
1 42656
2 42425
3 42723
4 42990
5 42685
6 42805
7 42780
8 42699
9 42663
a 42501
b 42753
c 42928
d 42795
e 42719
f 42442
Total: 683590

I don't know what they are or what they do, so my question is simply this:
Can I delete these files without affecting the performance of Trade X?

Thanks,
Tae

Offline a4evermedia

  • Global Moderator
  • Full Member
  • ***
  • Posts: 122
  • Karma: +25/-0
  • Gender: Male
    • View Profile
    • A4Ever Media
Re: Trade X & Inode limitations
« Reply #1 on: September 14, 2013, 10:15:42 PM »
This is a known issue addressed in this post from the old JMBSoft forum:

http://jmbforumarchives.unofficialjmbsupport.com/indexe9f9.html?i=viewtopic/7610/

Code: [Select]
This is a known issue that will be addressed in an upcoming release. In the meantime you can setup a cronjob to periodically clear out the sessions directory. For example, this command would locate and delete all session files that are older than 60 minutes:


find /full/path/to/tx/data/sessions -type f -mmin +60 -exec rm {} \;

This command can be run using a crontab entry:
Code: [Select]
If you wanted to run this daily at 1am, you could use this:


0 1 * * * find /full/path/to/tx/data/sessions -type f -mmin +60 -exec rm {} \;

Offline Taebok

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Trade X & Inode limitations
« Reply #2 on: September 14, 2013, 11:32:11 PM »
Excellent, thank you!

Unofficial JMB Support Forums

Re: Trade X & Inode limitations
« Reply #2 on: September 14, 2013, 11:32:11 PM »


Tags:
 

anything