Solved

Timeout in Apache 2.0

Posted on 2004-08-06
4
436 Views
Last Modified: 2008-01-09
Hi ....
I have tried to post my problem in many forums but not much success was acheived.To be precise lemme tell you what behaviour am i facing.I have developed an ASP.NET application using C# and i want to run it on RHL 9.0/Apache2.0 using mod_mono Mono 1.0.I have installed everything successfully(i guess so) from Daniel's notes step by step.Now if i run the same application under windows/IIS it runs PERFECT absolutely but when i run it under RHL 9.0/Apache 2.0/mod_mono/Mono 1.0, i get the weird behaviour.It run fine for some time...but after some time it seems that the connection to the server is lost if the application is left idle(probably 30 minutes).It starts giving the SERVER ERROR HTTP 500 for this particular application.If i try accessing the other directory under root i.e /mrtg that also works fine but the problem is with this particular application only which use C# with mono run time.In order to fix that problem i need to restart the linux box and everything starts running perfectly.I dont know what the problem lies in and how to fix that up. I am using Session variables. I haven't checked the cookie settings on my Windows and redhat box, but I'd like to know and change any setting that can run my web app without crashing. Any help or useful links will be of great help.

Thank you,

0
Comment
Question by:parvinderg
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 11742058
I'd first check the various logfiles (httpd's error_log, mono's ??)
Can you pleas post relevant messages (please not the whole file).
Can you identify which request produces the hang?
0
 
LVL 15

Expert Comment

by:samri
ID: 11753266
hi parvinderg,

and you may want to enable the apache internal status module.  Open you apache conf (httpd.conf) and locate the following configuration section (and uncomment them).

<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
</Location>

More docs on Apache website on mod_status: http://httpd.apache.org/docs-2.0/mod/mod_status.html

Then, you could do http://yourserver/server-status to monitor what is going on.
cheers.

0
 

Author Comment

by:parvinderg
ID: 11754702
Yes Samri...i can see the Server Status but still its again the same problem.What can i find out from that Server Status.? Or what information you want me to tell you from that.To let you know where am i facing this error, i want to tell that i have let's say 3 machines in my network - A,B and C. A is having Windows 2000 with IIs and Mono 1.0 and on this machine we are developing the application and then putting the application visa samba on the linux box (/var/www/html/app), Terminal C is my laptop which is having Win XP and Terminal B is the Linux box containing the RHL9.0, Apache 2.0 and Mono 1.0.I have started the server and the application is running fine on machine A as well as B but when i tried to access the application from machine C it threw the following error.Now i know that this error will not be eliminated until i reboot the linux machine.The same application is running fine when run on Machine A,no matter for how long i keep it running and even if i leave some user logged in, it doesnt thrown any error. I am to host this live application and may be 7000+ users will be accessing it so there's no point rebooting the linux box everytime.The log files in Apache doesnt show any error as the application on machine B is running fine till the time i m writing this post.Only its not running on machine C in the network.If you want anything more to know from my side please let me know.The error is as :

Description: Error processing request.
Error Message: HTTP 500.

Stack Trace: System.NullReferenceException: Object reference not set to an instance of an object
in <0x0013c> itegums.Login1:btnLogin_Click (object,System.EventArgs)
in <0x00069> (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
in <0x0009e> System.Web.UI.WebControls.Button:OnClick (System.EventArgs)
in <0x00058> System.Web.UI.WebControls.Button:System.Web.UI.IPostBackEventHandler.RaisePostBackEvent (string)
in <0x00016> System.Web.UI.Page:RaisePostBackEvent (System.Web.UI.IPostBackEventHandler,string)
in <0x0003e> System.Web.UI.Page:RaisePostBackEvents ()
in <0x002c3> System.Web.UI.Page:InternalProcessRequest ()
in <0x000c2> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
in <0x002f3> ExecuteHandlerState:Execute ()
in <0x00084> StateMachine:ExecuteState (System.Web.HttpApplication/IStateHandler,bool&)

 

0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 250 total points
ID: 11757367
> Stack Trace: System.NullReferenceException: Object reference not set to an instance of an object
programming error, fix the corresponding code
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question