Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 21. Nov 2024, 23:28

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: cluster ~30000 sessions
PostPosted: 4. Oct 2013, 17:50 
Offline

Joined: 11. Oct 2007, 04:08
Posts: 46
Hi I get a note from my website server, Is strange could you check it and tell me how to fix it?? This happen in the temp folder, here are the notes as my server says:

------- Note -------

Account suspended for stored session files on our cluster.

Reduce the settings of your session file handle.

The following sessions files have a size of up to 4 MB. And stored sessions on our cluster ~30000 sessions!

Example content of a session file :
twg_ses|a:2:{s:18:\"twg_latestlocation\";s:96:\"www.amateurchitsu.com/mounted-storage/home94a/sub004/sc49375-YFFB/amateurchitsu.com/galeri$

\";}i:1;a:3:{s:3:\"tag\";s:4:\"BILD\";s:4:\"type\";s:4:\"open\";s:5:\"level\";i:2;}i:2;a:4:{s:3:\"tag\";s:4:\"NAME\";s:4:\"type\";s:8:\"complete\";s:5:\"le$
\";s:4:\"type\";s:5:\"cdata\";s:5:\"level\";i:1;}i:6;a:3:{s:3:\"tag\";s:12:\"BESCHREIBUNG\";s:4:\"type\";s:5:\"close\";s:5:\"level\";i:1;}}i:1;a:4:{s:12$
\";}i:1;a:3:{s:3:\"tag\";s:4:\"BILD\";s:4:\"type\";s:4:\"open\";s:5:\"level\";i:2;}i:2;a:4:{s:3:\"tag\";s:4:\"NAME\";s:4:\"type\";s:8:\"complete\";s:5:\"le$
\";s:4:\"type\";s:5:\"cdata\";s:5:\"level\";i:1;}i:6;a:3:{s:3:\"tag\";s:12:\"BESCHREIBUNG\";s:4:\"type\";s:5:\"close\";s:5:\"level\";i:1;}}index|a:4:{s:$
\";}i:1;a:3:{s:3:\"tag\";s:4:\"BILD\";s:4:\"type\";s:4:\"open\";s:5:\"level\";i:2;}i:2;a:4:{s:3:\"tag\";s:4:\"NAME\";s:4:\"type\";s:8:\"complete\";s:5:\"le$
\";s:4:\"type\";s:5:\"cdata\";s:5:\"level\";i:1;}i:6;a:3:{s:3:\"tag\";s:12:\"BESCHREIBUNG\";s:4:\"type\";s:5:\"close\";s:5:\"level\";i:1;}}i:1;a:4:{s:12$
\";}i:1;a:3:{s:3:\"tag\";s:4:\"BILD\";s:4:\"type\";s:4:\"open\";s:5:\"level\";i:2;}i:2;a:4:{s:3:\"tag\";s:4:\"NAME\";s:4:\"type\";s:8:\"complete\";s:5:\"le$
\";s:4:\"type\";s:5:\"cdata\";s:5:\"level\";i:1;}i:6;a:3:{s:3:\"tag\";s:12:\"BESCHREIBUNG\";s:4:\"type\";s:5:\"close\";s:5:\"level\";i:1;}}kindex|a:4:{s$
\";}i:1;a:3:{s:3:\"tag\";s:4:\"BILD\";s:4:\"type\";s:4:\"open\";s:5:\"level\";i:2;}i:2;a:4:{s:3:\"tag\";s:4:\"NAME\";s:4:\"type\";s:8:\"complete\";s:5:\"le$
\";s:4:\"type\";s:5:\"cdata\";s:5:\"level\";i:1;}i:9;a:3:{s:3:\"tag\";s:4:\"BILD\";s:4:\"type\";s:4:\"open\";s:5:\"level\";i:2;}i:10;a:4:{s:3:\"tag\";s:4:$
\";s:4:\"type\";s:5:\"cdata\";s:5:\"level\";i:1;}i:17;a:3:{s:3:\"tag\";s:4:\"BILD\";s:4:\"type\";s:4:\"open\";s:5:\"level\";i:2;}i:18;a:4:{s:3:\"tag\";s:4$
\";s:4:\"type\";s:5:\"cdata\";s:5:\"level\";i:1;}i:25;a:3:{s:3:\"tag\";s:4:\"BILD\";s:4:\"type\";s:4:\"open\";s:5:\"level\";i:2;}i:26;a:4:{s:3:\"tag\";s:4$
\";s:4:\"type\";s:5:\"cdata\";s:5:\"level\";i:1;}i:33;a:3:{s:3:\"tag\";s:4:\"BILD\";s:4:\"type\";s:4:\"open\";s:5:\"level\";i:2;}i:34;a:4:{s:3:\"tag\";s:4$
\";s:4:\"type\";s:5:\"cdata\";s:5:\"level\";i:1;}i:41;a:3:{s:3:\"tag\";s:4:\"BILD\";s:4:\"type\";s:4:\"open\";s:5:\"level\";i:2;}i:42;a:4:{s:3:\"tag\";s:4$
\";s:4:\"type\";s:5:\"cdata\";s:5:\"level\";i:1;}i:49;a:3:{s:3:\"tag\";s:4:\"BILD\";s:4:\"type\";s:4:\"open\";s:5:\"level\";i:2;}i:50;a:4:{s:3:\"tag\";s:4$
\";s:4:\"type\";s:5:\"cdata\";s:5:\"level\";i:1;}i:57;a:3:{s:3:\"tag\";s:4:\"BILD\";s:4:\"type\";s:4:\"open\";s:5:\"level\";i:2;}i:58;a:4:{s:3:\"tag\";s:4$
\";s:4:\"type\";s:5:\"cdata\";s:5:\"level\";i:1;}i:65;a:3:{s:3:\"tag\";s:4:\"BILD\";s:4:\"type\";s:4:\"open\";s:5:\"level\";i:2;}i:66;a:4:{s:3:\"tag\";s:4$
\";s:4:\"type\";s:5:\"cdata\";s:5:\"level\";i:1;}i:73;a:3:{s:3:\"tag\";s:4:\"BILD\";s:4:\"type\";s:4:\"open\";s:5:\"level\";i:2;}i:74;a:4:{s:3:\"tag\";s:4$
\";s:4:\"type\";s:5:\"cdata\";s:5:\"level\";i:1;}i:81;a:3:{s:3:\"tag\";s:4:\"BILD\";s:4:\"type\";s:4:\"open\";s:5:\"level\";i:2;}i:82;a:4:{s:3:\"tag\";s:4$
\";s:4:\"type\";s:5:\"cdata\";s:5:\"level\";i:1;}i:89;a:3:{s:3:\"tag\";s:4:\"BILD\";s:4:\"type\";s:4:\"open\";s:5:\"level\";i:2;}i:90;a:4:{s:3:\"tag\";s:4$
\";s:4:\"type\";s:5:\"cdata\";s:5:\"level\";i:1;}i:97;a:3:{s:3:\"tag\";s:4:\"BILD\";s:4:\"type\";s:4:\"open\";s:5:\"level\";i:2;}i:98;a:4:{s:3:\"tag\";s:4$
\";s:4:\"type\";s:5:\"cdata\";s:5:\"level\";i:1;}i:105;a:3:{s:3:\"tag\";s:4:\"BILD\";s:4:\"type\";s:4:\"open\";s:5:\"level\";i:2;}i:106;a:4:{s:3:\"tag\";s$
\";s:4:\"type\";s:5:\"cdata\";s:5:\"level\";i:1;}i:113;a:3:{s:3:\"tag\";s:4:\"BILD\";s:4:\"type\";s:4:\"open\";s:5:\"level\";i:2;}i:114;a:4:{s:3:\"tag\";s$
\";s:4:\"type\";s:5:\"cdata\";s:5:\"level\";i:1;}i:121;a:3:{s:3:\"tag\";s:4:\"BILD\";s:4:\"type\";s:4:\"open\";s:5:\"level\";i:2;}i:122;a:4:{s:3:\"tag\";s$
\";s:4:\"type\";s:5:\"cdata\";s:5:\"level\";i:1;}i:129;a:3:{s:3:\"tag\";s:4:\"BILD\";s:4:\"type\";s:4:\"open\";s:5:\"level\";i:2;}i:130;a:4:{s:3:\"tag\";s$
\";s:4:\"type\";s:5:\"cdata\";s:5:\"level\";i:1;}i:137;a:3:{s:3:\"tag\";s:4:\"BILD\";s:4:\"type\";s:4:\"open\";s:5:\"level\";i:2;}i:138;a:4:{s:3:\"tag\";s$
\";s:4:\"type\";s:5:\"cdata\";s:5:\"level\";i:1;}i:145;a:3:{s:3:\"tag\";s:4:\"BILD\";s:4:\"type\";s:4:\"open\";s:5:\"level\";i:2;}i:146;a:4:{s:3:\"tag\";s$
\";s:4:\"type\";s:5:\"cdata\";s:5:\"level\";i:1;}i:153;a:3:{s:3:\"tag\";s:4:\"BILD\";s:4:\"type\";s:4:\"open\";s:5:\"level\";i:2;}i:154;a:4:{s:3:\"tag\";s$
\";s:4:\"type\";s:5:\"cdata\";s:5:\"level\";i:1;}i:161;a:3:{s:3:\"tag\";s:4:\"BILD\";s:4

------- Note -------

Second note:

We can see that our admins have suspended your account for storing session files on our cluster due to which the server resources are getting effected. It has been found one of your php scripts generates masses of 30,000 session files in the /tmp folder with the size of 4Mb each. Whatever you store in the session files it floods the temp folder on our cluster killing it effectively. You will need to check all your scripts and see how your scripts are generating so many session files. As it is a shared server other client\'s site performance on the server get effected. We have send you the notification regarding the suspension, for more details please go through https://secure.servage.net/cp/support/notifications/. Please check notification of date 2013-10-02.
Please let us know what changes you have made so that we can check for unsuspension.

Thank you!!

_________________
www.latangaroja.com


Top
 Profile  
 
PostPosted: 4. Oct 2013, 21:36 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
TWG is really storing a lot of stuff in the session because e.g. the whole directory structure is stored in the session.
You can turn off the caching if you like

See in config.php -> Section: Caching settings

TWG does also cache already loaded xml files and so on in the session. Because otherwise the
xml files have to be loaded again and again.

What does wonder me are the 30.000 sessions. How many users do you have?
30.000 sounds to me like that session files are not removed...
And how many images? 4 MB is also much. My demo has 800 images and the session is ~ 200k

Best, Michael


Top
 Profile  
 
PostPosted: 5. Oct 2013, 03:45 
Offline

Joined: 11. Oct 2007, 04:08
Posts: 46
Hi, thanks for your answer!!!

So you recomend me turn off caching and use the xml pictures structure?? How I turn on xml??

I have only 1 user (admin) and something like 100,000 pictures or more...

So what I have to do is:

1.- Delete all thumbs and temporary files
2.- turn off caching
3.- turn on xml structure in each fodler (tell me how do that pls)
4.- were are the session files?? Do I have to remove them also??

Is that correct??

Thanks for your support Michael!!

_________________
www.latangaroja.com


Top
 Profile  
 
PostPosted: 5. Oct 2013, 13:31 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
No,

1. No - this would kill your performance
2. Depends - I think with 100.000 images you should read this howto first: http://www.tinywebgallery.com/en/faq.php#h45 There you see where caching is done!
3. Data is stored in xml. There is nothing you can do. In my opinion the 100.000 images make the session so big.
"If you have really many images and the 1st start of the gallery takes very long most likely this is the counting of all images for the "number of images" counter. This counting is cached but the 1st call could timeout if your server settings are to low. You should set $show_counter_in_jstree=false and $show_number_of_pic=false; then. The counter is then not shown anymore. " Is the important one for you. If you do this settings then the whole directory structure is not crawled anymore but only the ones needed for the current page. Do this setting first and check the session size.
4. Ask your hoster. If you don't have access you can e.g. change the session save path to a directory you can access and cleanup if needed.

1 user? I'm talking about visitors. one visitor generate one session! If you don't have so many visitors than the cleanup of sessions do not work properly. This has to be checked as well.

Best, Michael


Top
 Profile  
 
PostPosted: 6. Oct 2013, 19:58 
Offline

Joined: 11. Oct 2007, 04:08
Posts: 46
Hi, thank you for the response..

Well I have something like 500 daily visitors or more... since the begining the image counter has been turned off...

If I do all you say plus the tips in the "45. How to optimize the gallery for speed" the problem dont gonna show again??

Thank you!!

_________________
www.latangaroja.com


Top
 Profile  
 
PostPosted: 7. Oct 2013, 00:01 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
if you have ~500 visitors a day you should first check why the sessions are not cleaned up!
This is your main problem.
A session normally terminates after 30 min when the user leaves.

even if a user does stay 1h you should only have only a couple of sessions and not 30.000.

Best, Michael


Top
 Profile  
 
PostPosted: 7. Oct 2013, 01:50 
Offline

Joined: 11. Oct 2007, 04:08
Posts: 46
Hi, how I can check that?? Is inside the TWG csettings or elsewere??

Thank you!!

_________________
www.latangaroja.com


Top
 Profile  
 
PostPosted: 7. Oct 2013, 23:28 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
This is something your server has to do. Ask your hoster. They should be able to check this.

Best, Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 37 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy