Apache always loosing connection?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Apache always loosing connection?

Postby Diablosblizz » 24. July 2009 16:08

Hey, I've installed XAMPP and it's working well so far. The only problem I can see as of now is that apache is always timeing out. Right now, it's working perfectly fine and fast, but after about 15-20 minutes after the apache service restart the server starts to timeout.

For example:

1. Apache is timing out.
2. I login via remote desktop to my server and restart the apache service via XAMPP control
3. The service fails to start the first time (no error message, it just don't start)
4. I click it again and the service starts up
5. 15-20 minutes later apache starts timing out thus starting at number 1 again.

I don't know what to do, everything else (including FTP) doesn't timeout so it's not a network problem. The server is powered by Server 2003 and it's a 2.8 GHz Xeon Dual Processor with 2 GB of ram so it has plenty of speed. All ports are indeed unblocked.

Is there anything I can do to fix this? Thanks!
Diablosblizz
 
Posts: 7
Joined: 18. May 2007 20:19

Re: Apache always loosing connection?

Postby Diablosblizz » 08. August 2009 05:28

Apache is now crashing constantly. It doesn't stop, and I am unsure why. It doesn't crash, the processes are running but stops accepting connections, then starts up again.

I'm seeing many of these in error.log:

[Sat Aug 08 00:56:25 2009] [warn] Server ran out of threads to serve requests. Consider raising the ThreadsPerChild setting
[Sat Aug 08 00:56:39 2009] [notice] Child 6460: Waiting 210 more seconds for 117 worker threads to finish.
[Sat Aug 08 00:57:12 2009] [notice] Child 6460: Waiting 180 more seconds for 53 worker threads to finish.


ThreadsPerChild is currently at 500 with 10 max connections per child.
Diablosblizz
 
Posts: 7
Joined: 18. May 2007 20:19

Re: Apache always loosing connection?

Postby Golgar_2000 » 02. October 2009 07:40

Hi, I Believe I Have A Solution.
I Have Always Manually Gone & Downloaded, Installed & Configured All The Separate Programs, Apache, PHP, etc. Never Had A Problem I Couldn't Fix Or Find A Solution For, Anyway, I Have Just Downloaded & Installed XAMPP 1.7.2 Also The Tomcat Add-on. Now Everything Was Fine First Run All Services Ran Fine.

Apache
MySql
FileZilla
Mercury &
Tomcat.

The Problem Started After I Restarted My Computer. No Apache? It Says It Started But Nothing, Hmmm Strange. All The Configuration Files Where Correct. So I Mucked Around For A While, Researched Everywhere & Even Tried To Install Apache Over The Apache Directory In XAMPP. Still Nothing. So I Started Again. Uninstall, Re-Install. Hey Apache Is Working Again. This Time No Restart. So I Just Clicked The Stop Apache Button, All Good. Ok Start Apache, NOTHING AGAIN. Sound Familiar?

Now Is Not The Time To Scream, It Has Already Told You The Problem. Apache. Very Simple, Go & Check Out The Error Log (Open With Notepad) The Log Files Are Located Here

" \xampp\apache\logs

Go To The Bottom Of The Log File & You Will See The Date, Time & Status. I Found That A File Was Missing Or Could Not Be Located. The Problem Was Related To Tomcat Which Stopped Apache From Starting.

"mod_jk.so" Was Missing From " \xampp\tomcat\Server\xampp\apache\modules\

So I Found A Copy Of "mod_jk.so" Located In " \xampp\apache\modules

So Very Simple. I Copied "mod_jk.so" From “ \xampp\apache\modules To “ \xampp\tomcat\Server\xampp\apache\modules\

Clicked The Start Apache Button & TADA Apache Is Working Again.

Now If A Different File Is Missing Try Searching Your Computer For It & If You Don’t Have It Download The ZIP File From Apache.org & You Should Find It In There.

In Conclusion If Apache Won't Start Or Won't Stay On Check You Log Files It Will Tell You The Problem. I Hope This Has Helped.
Golgar_2000
 
Posts: 10
Joined: 02. October 2009 06:18

Re: Apache always loosing connection?

Postby Izzy » 02. October 2009 08:15

Golgar_2000 wrote:"mod_jk.so" Was Missing From " \xampp\tomcat\Server\xampp\apache\modules\
http://community.apachefriends.org/f/viewtopic.php?p=149962#p149962
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 75 guests