LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > strange error.. & 503 service Unavailable

Reply
 
Thread Tools Display Modes
  #11  
Old 09-02-2005, 11:30 AM
SyNeo SyNeo is offline
Senior Member
 
Join Date: Dec 2004
Posts: 59
Quote:
Should a plain restart of the server enable these restrictions?
It is a OS wide configuration, probably need a reboot. I am not sure. Can you apply the limit from command line any way.

Quote:
Are the instructions of modifying the cgi_main.c are still valid for the PHP5 as well?
Yes, it is still vaild.
Reply With Quote
  #12  
Old 09-04-2005, 08:18 AM
xinn xinn is offline
Member
 
Join Date: Aug 2005
Posts: 21
Im still getting this 503 errors.. Should i raise any limits ( f/e Max Connection)? and is there a constant value for how long this error will stay?

Regards
Reply With Quote
  #13  
Old 09-04-2005, 10:07 AM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
Raising limits will not help you situation. The most common reason for the 503 errors if your php processes crashing or taking so long to process they might as be considered zombies.

You need to monitor stderr.log, error.log, or php.err for any php related errors. In addition, we might be able to help you if you provide the actual code to the script causing the problem.

Also check for any core.XXXX files within your php file directory or within /tmp/lshttpd/.
Reply With Quote
  #14  
Old 09-04-2005, 10:16 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Another not so good temp solution, restart lsws automatically from a corn job once for a while. This way no service interruption at all.

Have you tried LSAPI again?

We certainly need more information about your server, maybe the login to the admin interface, if you don't mind. :-)
Reply With Quote
  #15  
Old 09-06-2005, 02:29 PM
SyNeo SyNeo is offline
Senior Member
 
Join Date: Dec 2004
Posts: 59
Hi.

I think I discovered another issue, related to the memory leak. My site application throws here and there the following error:

Fatal Error
[2] gzcompress() [function.gzcompress]: insufficient memory (@line 204 in file /var/myndweb/common/framework/TViewStateManager.php).

Debug Backtrace
#1 TViewStateManager.php:204 -- pradoErrorHandler(...)
#2 TViewStateManager.php:204 -- gzcompress(...)
#3 TPage.php:374 -- TViewStateManager->encode(...)
#4 TPage.php:957 -- AllUsers->savePageStateToPersistenceMedium(...)
#5 TApplication.php:481 -- AllUsers->execute()
#6 index.php:27 -- TApplication->run()

A restart of the server allows to resolve the issue, but only temporary. I'm using the LSAPI.

This behavior is not spotted in Apache.

The suggestion to restart the server seems interesting, but won't it destory the server side sessions, and will cause a mess with the applications?
Reply With Quote
  #16  
Old 09-06-2005, 03:32 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Maybe the memory limit for PHP process is too low, you can increase the limit under "Server"->"Security"->"CGI Resource Control". It controls the memory limit for FCGI and LSAPI app as well.

Usually PHP store session data on disk, restart lshttpd will not affect PHP sessions.
Reply With Quote
  #17  
Old 09-07-2005, 07:13 AM
SyNeo SyNeo is offline
Senior Member
 
Join Date: Dec 2004
Posts: 59
Hi.

Any recommeded values that I can try?

Also, the "CGI Daemon Socket" is set to N/A - should it be set to some path?
Reply With Quote
  #18  
Old 09-07-2005, 08:14 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
You can try current value + 10M.
CGI Daemon Socket can be set at will, default is set to $SERVER_ROOT/admin/conf/cgid.sock. Will make it optional.
Reply With Quote
  #19  
Old 09-07-2005, 01:39 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Please download 2.1RC3 package again, there are small bug fixes, and one new feature for debuging. Debug logging can be dynamically turned on and off through web admin interface.

So, when 503 error happened, please remove current error.log, turn on debug logging for a little while before restarting the server, then email us the error log file, it will help analyzing the problem a lot.
Reply With Quote
  #20  
Old 09-27-2005, 02:16 AM
SyNeo SyNeo is offline
Senior Member
 
Join Date: Dec 2004
Posts: 59
Hi.

I wanted to update you that I switched to FastCGI, and never had any problems since then, including using the eAccelerator with optimizer turned on. I would like to switch to LSApi thought, the question is whether this issue was resolved in the latest release version (2.1.1).
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ruby On Rails 503 Service Unavailable Bug mroberto Ruby/Rails 6 03-24-2007 07:06 PM
503 Service Unavailable weird Install/Configuration 7 09-20-2006 11:55 AM
503 Service Unavailable - while setting up Perl FastCGI nigel CGI/Perl/Python 1 02-15-2005 06:15 AM
503 Service Unavailable illidan Bug Reports 3 01-03-2005 09:27 AM
503 Service Unavailable George Install/Configuration 14 02-11-2004 01:23 AM


All times are GMT -7. The time now is 05:54 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.