SID-01703: TWiki is running slow
| Status: |
Answered |
TWiki version: |
5.1.2 |
Perl version: |
5.8.4 |
| Category: |
CategoryPerformance |
Server OS: |
Solaris 10 |
Last update: |
10 years ago |
Hi Team ,
We are experiencing issues in the performance of TWiki at the moment sudenly. The version of TWiki is 5.1.2. Is there something that we could check at our end ? We have restarted the Apache service and also rebooted the server hosting TWiki and still we are experiencing the same problem. The Network traffic seems to be fine and the server load seems to be ok too.
Thanks Clive
--
Clive Dias - 2013-05-16
Discussion and Answer
Possible issue: Too many expired session files. See "Automate removal of expired sessions and lease files" in
TWikiInstallationGuide.
--
Peter Thoeny - 2013-05-16
Hi Peter,
Thank you for the fast reply.
I have exucuted the command perl -I /twiki-home/twiki/bin tick_twiki.pl the command executed successfully but the twiki perfomance is very slow. The web pages are taking 1 minute to load
Thanks Clive
--
Clive Dias - 2013-05-16
What is the CPU load? Check with
top command.
What is the Memory usage? Check with
free command.
If you use external authentication such as LDAP check the performance of it.
Check disk space of /tmp and other system volumes.
--
Peter Thoeny - 2013-05-16
Hi Peter ,
Everything seems to be fine
load averages: 0.11, 0.11, 0.10 05:16:41 108 processes: 107 sleeping, 1 on cpu CPU states: 99.3% idle, 0.1% user, 0.5% kernel, 0.0% iowait, 0.0% swap Memory: 24G real, 14G free, 2463M swap in use, 82G swap free
Filesystem size used avail capacity Mounted on swap 82G 112K 82G 1% /tmp
Filesystem size used avail capacity Mounted on /me 43G 35G 7.9G 82% /me
Thanks, Clive
--
Clive Dias - 2013-05-17
If you use an external
{PasswordManager} switch temporarily to
TWiki::Users::HtPasswdUser for testing.
--
Peter Thoeny - 2013-05-17
Hi Peter,
The paramater is already set to $TWiki::cfg{PasswordManager} = 'TWiki::Users::HtPasswdUser';
All of it suddenly become very slow it is very strange when the httpd process in ps -ef showed 50720 hours
50720:03 /usr/local/apache2/bin/httpd -f /usr/local/apache2/conf/httpd.conf -k start
Thanks Clive
--
Clive Dias - 2013-05-17
Hi Peter ,
How can we determine the number of expired sessions and lease files on our TWiki and to confirm that the perl script /twiki-home/twiki/bin tick_twiki.pl has cleaned up successfully ?
Thanks Clive
--
Clive Dias - 2013-05-17
Count the
twiki/working/tmp/cgisess_* files.
--
Peter Thoeny - 2013-05-17
Hi Peter,
I found 68 files
#twiki-home/twiki/working/tmp$ l | wc -l
-
-
So after running /twiki-home/twiki/bin tick_twiki.pl script it deletes all the above files right?
--
Clive Dias - 2013-05-17
Hi Peter,
Now Twiki seem to be running fast ( loading pages under 2 seconds

) after running the perl -I /twiki-home/twiki/bin tick_twiki.pl and couple of restarts today morning. And the count of the twiki/working/tmp/cgisess_*= files. comes to zero after running the command.
Thanks for yor Help!
Thanks, Clive
--
Clive Dias - 2013-05-20
I am glad it worked out after all. I do not think it was a session file issue. A high traffic sites like TWiki.org has 5k session files and is fine. You only run into performance issues if you have a negative value for
{Sessions}{ExpireAfter} and do cron to run
tick_twiki.pl. That could end up with tens of thousands of files.
--
Peter Thoeny - 2013-05-20
After deleting the twiki/working/tmp/cgisess_* files, it doesn't effect on application. Gives same result.
--
Madhuri Yevale - 2013-06-06
Just as data point, TWiki should load a page that has not much dynamic content in 1-2 seconds.
--
Peter Thoeny - 2013-06-06
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
Peter Thoeny - 2015-12-03
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.