You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by at...@yahoo.com on 2008/12/25 18:08:28 UTC
[users@httpd] Javascript freeze up Apache on Windows
Hi good Apache people,
I am trying to use Apache as a front end to Tomcat and add a PHP bulletin board in. Everything work nicely with a package I got from XAMPP. However, I notice that sometimes my browser doesn't get anything back for too long (10-20 seconds). After 2 weeks or so I nailed it down to a page that would consistently delay for 21 seconds. During that 21 seconds everything stop. No CPU load. No response to any browser. I found these 2 lines of Javascript code causing the bad juju:
var camera=document.createElement("img");camera.src="/map/images/symbol/smallcamera.gif";camera.height=15;camera.height=15;
textDiv.appendChild(camera);
If I remove these 2, everything is fine. Firefox works fine without having to remove these 2 though. IE6 will stuck and show "loading http://whatever/map/images/symbol/smallcamera.gif" in the status bar for 21 seconds before finally complete (with the image loaded). In the log it said:
[Tue Dec 02 06:33:30 2008] [warn] (OS 121)The semaphore timeout period has expired. : winnt_accept: Asynchronous AcceptEx failed.
[Tue Dec 02 06:33:30 2008] [warn] (OS 64)The specified network name is no longer available. : winnt_accept: Asynchronous AcceptEx failed.
Currently, my workaround is to preload image in html page and hide it somewhere.
So my questions are
1.why this dynamic loading javascript can freeze up the whole Apache process?
2.would you please let us have more than one worker process in mpm_winnt ?
Thanks
Anan
Re: [users@httpd] Javascript freeze up Apache on Windows
Posted by at...@yahoo.com.
> There is no extra AV,firewall, just the Windows firewall. Even if it's one
> of these things, it shouldn't freeze up the whole process.
Can you get a backtrace?
I don't know what you mean by backtrace. I tried traceroute back to client and it completed without problem.This problem is specific to IE. Firefox has no problem. I tried to put other images in that Javascript code and come out with the same result. I tried to remove QoS and other Microsoft network service/client thing but still the same.
> I already tried
> Win32DisableAcceptEX. It helps but Apache become bloated and unstable. If I
> hit F5 (refresh) fast enough, I can make its memory go up 10-20MB/s. By the
> way, that MaxMemFree thing doesn't work.
Once or for every request?
MaxMemFree only applies to pool memory, so maybe the allocation isn't
in a pool. Are you using any additional modules?
I meant I hit F5 continuously like 5 times/sec and the memory will go up at that rate. If I hit it slower like once per second, the memory will go up too but at slower rate. That page I tried was from Tomcat though. So the leak might be in mod_jk. The leak is higher with Win32DisableAcceptEX.
> I still ask the ASF people, if possible,
> please give us more worker process in mpm_winnt.
Why would that help here?
Another thing I just notice is the delay image loading also occur in direct access to Tomcat but it never lock up Tomcat. For Apache, the delay is a little longer (than Tomcat) and the server is not processing new request. I tried telnet in. Apache accept my connection. I typed in "get /" and it stuck there until image loading is finish.
So I think if we have extra worker process, it might pick up and serve the request while the first one blocked. It's just my imagination though. I don't know the way requests are distributed to workers and 20 seconds (blocked time) is a long time too.
Anan
Re: [users@httpd] Javascript freeze up Apache on Windows
Posted by Eric Covener <co...@gmail.com>.
On Fri, Dec 26, 2008 at 6:48 AM, <at...@yahoo.com> wrote:
> There is no extra AV,firewall, just the Windows firewall. Even if it's one
> of these things, it shouldn't freeze up the whole process.
Can you get a backtrace?
> I already tried
> Win32DisableAcceptEX. It helps but Apache become bloated and unstable. If I
> hit F5 (refresh) fast enough, I can make its memory go up 10-20MB/s. By the
> way, that MaxMemFree thing doesn't work.
Once or for every request?
MaxMemFree only applies to pool memory, so maybe the allocation isn't
in a pool. Are you using any additional modules?
> Right now I'm wondering if the
> multithread thing works at all.
The multithreaded server works for lots of people on Windows.
> I still ask the ASF people, if possible,
> please give us more worker process in mpm_winnt.
Why would that help here?
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Javascript freeze up Apache on Windows
Posted by at...@yahoo.com.
There is no extra AV,firewall, just the Windows firewall. Even if it's one of these things, it shouldn't freeze up the whole process. I already tried Win32DisableAcceptEX. It helps but Apache become bloated and unstable. If I hit F5 (refresh) fast enough, I can make its memory go up 10-20MB/s. By the way, that MaxMemFree thing doesn't work. Right now I'm wondering if the multithread thing works at all. I still ask the ASF people, if possible, please give us more worker process in mpm_winnt.
Re: [users@httpd] Javascript freeze up Apache on Windows
Posted by Eric Covener <co...@gmail.com>.
On Thu, Dec 25, 2008 at 12:08 PM, <at...@yahoo.com> wrote:
>
> [Tue Dec 02 06:33:30 2008] [warn] (OS 121)The semaphore timeout period has
> expired. : winnt_accept: Asynchronous AcceptEx failed.
> [Tue Dec 02 06:33:30 2008] [warn] (OS 64)The specified network name is no
> longer available. : winnt_accept: Asynchronous AcceptEx failed.
>
> Currently, my workaround is to preload image in html page and hide it
> somewhere.
>
> So my questions are
> 1.why this dynamic loading javascript can freeze up the whole Apache
> process?
> 2.would you please let us have more than one worker process in mpm_winnt ?
Buggy AV/firewall software? Tried Win32DisableAcceptEX?
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org