Portal Home > Knowledgebase > Articles Database > Strange problem with apache and socket


Strange problem with apache and socket




Posted by Bukowski, 07-08-2008, 07:34 PM
Hello, sorry for my bad english. I've a strange problem with my flashchat realized on php and xmlsocket. I premise that chat works fine with 100 concurrent user. But When the number rises, and I've been to 350 users at the same time, something happens to the server which makes the whole thing freeze. After I eliminated just about everything that can go wrong with the php side of things, we came to the conclusion that this must be something related to the apache, since if before the php socket server went bad on account of an error, we simply needed to relaunch the php again, and everything would start up and work just fine untill the next crash. We have a unix server, using Apache 2, php 4.something or 5 (but again, problem is not there), did anyone knows what this could be? are we passing some limit of sockets connections Apache has that we don't know about? a limit of data transfer we are breaking? my script, when running and holding on to 300 users, use about 2-3 Mbit of bandwidth, nothing to get excited about. Can some one help?!! Thanks.

Posted by activelobby4u, 07-08-2008, 09:43 PM
What is the kind of memory and cpu usage when flashchat reaches its peak values. Probably the server is running our of memory

Posted by Bukowski, 07-09-2008, 03:55 AM
None. Memory 300mb on 2GB, CPU 5%, Load Average: 0.10 The server is new, dual core, apache2, 2 GB of RAM. There isn't nothing, only the socket. Thanks

Posted by Srv24x7, 07-09-2008, 04:01 AM
you might need to modify your php settings and optimize php with your application.

Posted by Bukowski, 07-09-2008, 05:28 AM
what you advice to modify on my php setting ?? i've optimized httpd.conf but the result is are always the same. thanks

Posted by Bukowski, 07-10-2008, 08:26 AM
I made a new test and unfortunately the results are always the same The script is go down with 275 concurrancy users. Strange, because the server was not having load. This is the situation before falling TOP: http://img181.imageshack.us/img181/4...rvertoppa1.gif NETSTAT http://img152.imageshack.us/img152/6...netstatfh4.gif NETSTAT AFTER DOWNhttp://img152.imageshack.us/img152/4...etstat2fc8.gif Error log di apache: nothing. Only search the favicon. It seems all ok, but not it How i can do ?? Thanks!



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Revecom (PaySystems) (Views: 632)
Narrowed it down (Views: 882)
HostBright Downtime? (Views: 692)
So who's the best? (Views: 587)
WebNX down? (Views: 644)

Language: