| 
 
 
 | 
| Keep Server Online 
 If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
 
 or
 
 
   
 A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
 
 Thank You! Steffen
 
 Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
 |  | 
 | 
| | 
| | 
|  Topic: Sockets shutting down during first HTTP request (only) |  |  
| Author |  |  
| neilrichards 
 
 
 Joined: 22 Jul 2015
 Posts: 2
 Location: London
 
 | 
|  Posted: Thu 23 Jul '15 10:50    Post subject: Sockets shutting down during first HTTP request (only) |   |  
| 
 |  
| Hi, 
 Having a strange problem with Apache (2.2.24) and Tomcat (6.0.32) where when I start both and request my home page Apache shuts down a socket and I get a status 500. If however I go to another page that displays fine, and then if I return to the home page that then works fine too. Everything used to work fine, and as far as I know no Apache configurations have changed since. Can someone please help me work out what the problem might be?
 
 Here are the relevant portions of the mod_jk log:
 
 First the initial request:
 
 Admin note:
 
 Moved the log output to:  http://apaste.info/ynk
 
 ... and the subsequent request for the same page:
 
 Admin note:
 
 Moved the log output to:  http://apaste.info/ddp
 
 
 Next time please follow the forum rules.
 
 I'm using Windows 7 btw.
 
 Many thanks,
 Neil
 |  |  
| Back to top |  |  
| James Blond Moderator
 
  
 Joined: 19 Jan 2006
 Posts: 7442
 Location: EU, Germany, Next to Hamburg
 
 | 
|  Posted: Tue 28 Jul '15 11:41    Post subject: |   |  
| 
 |  
| The socket timed out for the first request. |  |  
| Back to top |  |  
| neilrichards 
 
 
 Joined: 22 Jul 2015
 Posts: 2
 Location: London
 
 | 
|  Posted: Wed 29 Jul '15 17:57    Post subject: |   |  
| 
 |  
| ... any ideas why that would be? If this log entry indicates the time the request took (which looks right): 
 
  	  | Code: |  	  | tomcat hit334nr 0.739408 | 
 
 that time doesn't seem unreasonable. Is there a setting somewhere that will make it wait a little longer
  |  |  
| Back to top |  |  
| James Blond Moderator
 
  
 Joined: 19 Jan 2006
 Posts: 7442
 Location: EU, Germany, Next to Hamburg
 
 | 
|  Posted: Thu 30 Jul '15 17:48    Post subject: |   |  
| 
 |  
| What is your mod_jk settings? I don't know mod_jk but there should be a parameter for that. |  |  
| Back to top |  |  
 
 | 
 |  | 
 |  |