logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Need help with mod_deflate
Author
ajay.rivendell



Joined: 22 Jun 2010
Posts: 4

PostPosted: Tue 22 Jun '10 10:24    Post subject: Need help with mod_deflate Reply with quote

Hi All,

I am facing problems while setting up Apache + mod_deflate on my local application.

Below is my problem,

1] If I enable mod_deflate then I get an error in web browser as: 'The connection was reset. The connection to the server was reset while the page was loading.'

In the apache error log I get below trace,

Code:

[Tue Jun 22 13:36:18 2010] [debug] child.c(698): Child 5200: Worker thread 247 starting.
[Tue Jun 22 13:36:18 2010] [debug] child.c(698): Child 5200: Worker thread 243 starting.
[Tue Jun 22 13:36:18 2010] [debug] child.c(698): Child 5200: Worker thread 248 starting.
[Tue Jun 22 13:36:18 2010] [debug] child.c(698): Child 5200: Worker thread 246 starting.
[Tue Jun 22 13:37:36 2010] [debug] mod_deflate.c(468): [client 127.0.0.1] Zlib: Compressed 64732 to 85 : URL /epd/
[Tue Jun 22 13:37:38 2010] [notice] Parent: child process exited with status 3221225477 -- Restarting.
[Tue Jun 22 13:37:38 2010] [notice] Apache/2.0.63 (Win32) PHP/5.2.6 configured -- resuming normal operations
[Tue Jun 22 13:37:38 2010] [notice] Server built: Jan 17 2008 22:58:29
[Tue Jun 22 13:37:38 2010] [notice] Parent: Created child process 4804
[Tue Jun 22 13:37:38 2010] [debug] mpm_winnt.c(486): Parent: Sent the scoreboard to the child
[Tue Jun 22 13:37:39 2010] [notice] Child 4804: Child process is running
[Tue Jun 22 13:37:39 2010] [info] Parent: Duplicating socket 216 and sending it to child process 4804
[Tue Jun 22 13:37:39 2010] [info] Parent: Duplicating socket 224 and sending it to child process 4804
[Tue Jun 22 13:37:39 2010] [debug] mpm_winnt.c(604): Parent: Sent 2 listeners to child 4804
[Tue Jun 22 13:37:39 2010] [debug] mpm_winnt.c(407): Child 4804: Retrieved our scoreboard from the parent.
[Tue Jun 22 13:37:39 2010] [debug] mpm_winnt.c(563): Child 4804: retrieved 2 listeners from parent
[Tue Jun 22 13:37:39 2010] [notice] Child 4804: Acquired the start mutex.
[Tue Jun 22 13:37:39 2010] [notice] Child 4804: Starting 250 worker threads.
[Tue Jun 22 13:37:39 2010] [debug] child.c(698): Child 4804: Worker thread 0 starting.
[Tue Jun 22 13:37:39 2010] [debug] child.c(698): Child 4804: Worker thread 1 starting.
[Tue Jun 22 13:37:39 2010] [debug] child.c(698): Child 4804: Worker thread 2 starting.
[Tue Jun 22 13:37:39 2010] [debug] child.c(698): Child 4804: Worker thread 4 starting.


2] If I comment the deflate settings then my application works without any issues,

Here is my deflate code,

Code:

<Location /myapp>

   <IfModule mod_deflate.c>
   
      #enable compression
 
      AddOutputFilterByType DEFLATE text/plain
      AddOutputFilterByType DEFLATE text/html
   
      #AddOutputFilterByType DEFLATE text/xml
      #AddOutputFilterByType DEFLATE text/css
      #AddOutputFilterByType DEFLATE application/xml
      #AddOutputFilterByType DEFLATE application/xhtml+xml
      #AddOutputFilterByType DEFLATE application/rss+xml
      #AddOutputFilterByType DEFLATE application/javascript
      #AddOutputFilterByType DEFLATE application/x-javascript
      
      #rules to exclude browsers that do not support compression
      BrowserMatch ^Mozilla/4 gzip-only-text/html
      BrowserMatch ^Mozilla/4\.0[678] no-gzip
      BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
      
   </IfModule>

   ExpiresActive  On
   ExpiresByType  text/plain              "access plus 10 years"
   ExpiresByType  text/css                "access plus 10 years"
   ExpiresByType  application/javascript   "access plus 10 years"
   ExpiresByType  image/gif                "access plus 10 years"
   ExpiresByType  image/jpeg               "access plus 10 years"
   ExpiresByType  image/png                "access plus 10 years"
   ExpiresByType  application/x-javascript "access plus 10 years"
   
   
</Location>


Here is my server name settings,

Code:

ServerName 127.0.0.1:80
UseCanonicalName Off


3] Also I am using websphere plugin as my web application is hosted on websphere,

Code:

WebSpherePluginConfig "C:\config\MyApache2\plugin-cfg.xml"


Could you guys please help me in making this work?

-Regards
Ajay
Back to top
ajay.rivendell



Joined: 22 Jun 2010
Posts: 4

PostPosted: Tue 22 Jun '10 10:34    Post subject: Reply with quote

It seems that there is restart happening in between,


Code:


The Apache2 service is restarting.
The Apache2 service has restarted.
 Apache/2.0.63 (Win32) PHP/5.2.6 configured -- resuming normal operations
[Tue Jun 22 14:02:36 2010] [notice] Server built: Jan 17 2008 22:58:29
[Tue Jun 22 14:02:36 2010] [notice] Parent: Created child process 7460
[Tue Jun 22 14:02:36 2010] [notice] Child 7460: Child process is running
[Tue Jun 22 14:02:37 2010] [notice] Child 7460: Acquired the start mutex.
[Tue Jun 22 14:02:37 2010] [notice] Child 7460: Starting 250 worker threads.
[Tue Jun 22 14:03:34 2010] [notice] Parent: child process exited with status 3221225477 -- Restarting.
[Tue Jun 22 14:03:34 2010] [notice] Apache/2.0.63 (Win32) PHP/5.2.6 configured -- resuming normal operations
[Tue Jun 22 14:03:34 2010] [notice] Server built: Jan 17 2008 22:58:29
[Tue Jun 22 14:03:34 2010] [notice] Parent: Created child process 4156
[Tue Jun 22 14:03:35 2010] [notice] Child 4156: Child process is running
[Tue Jun 22 14:03:35 2010] [notice] Child 4156: Acquired the start mutex.
[Tue Jun 22 14:03:35 2010] [notice] Child 4156: Starting 250 worker threads.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Tue 22 Jun '10 14:56    Post subject: Reply with quote

I have seen this caused by PHP. You should upgrade PHP to 5.2.13 or 5.3.2

Is any compression enabled in your php.ini? Twice compression can also cause such an error.

Your apache is not the newest version. Is there any reason why not to upgrade to 2.2.15 ?
Back to top
ajay.rivendell



Joined: 22 Jun 2010
Posts: 4

PostPosted: Tue 22 Jun '10 14:59    Post subject: Reply with quote

But I get this error even when I have disabled PHP.
Back to top
ajay.rivendell



Joined: 22 Jun 2010
Posts: 4

PostPosted: Tue 22 Jun '10 15:00    Post subject: Reply with quote

I am trying to setup mod_deflate which is used for compression.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Tue 22 Jun '10 15:09    Post subject: Reply with quote

I found the bug for it in bugzilla[1]. The ASF recommend to upgrade apache to 2.2 But read it yourself.
I also recommend to upgrade to 2.2.15





[1] https://issues.apache.org/bugzilla/show_bug.cgi?id=44338
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Wed 23 Jun '10 23:34    Post subject: Reply with quote

Agreed with the recommendation of switching to 2.2.15.
I know why they offer the download, but they should state to use 2.2.15 if it is your first install. The list of problems with 2.0.63 is ever growing and the chances of a 2.0.64 are slim if any.
Back to top


Reply to topic   Topic: Need help with mod_deflate View previous topic :: View next topic
Post new topic   Forum Index -> Apache