By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,561 Members | 3,083 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,561 IT Pros & Developers. It's quick & easy.

Ajax Speed Problem

P: n/a
Hi All,

Ive been having a problem of late with one of my sites that uses PHP5 /
Ajax. The problem is that periodically the ajax functions lock up and it
gets stuck in the loading phase of the request. If i restart the apache
server everything goes back to normal (i assume it severs the connection
to the ajax called function).

I think this is a problem with the javascript part as i have tried it
using a straight post request and have have no problems and slow loading
time is localized to the one user (ie. still works fine on the other
computers on my office network).

I have recorded this happening in Firefox, safari and IE6 & 7

My server is running debian with apache2 and php5

Just wondering if somebody can shed some light on what my problem may be?
Cheers

Will

--
Message posted using http://www.talkaboutprogramming.com/...ng.javascript/
More information at http://www.talkaboutprogramming.com/faq.html

Oct 16 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
willl69 wrote:
Hi All,

Ive been having a problem of late with one of my sites that uses PHP5 /
Ajax. The problem is that periodically the ajax functions lock up and it
gets stuck in the loading phase of the request. If i restart the apache
server everything goes back to normal (i assume it severs the connection
to the ajax called function).

I think this is a problem with the javascript part as i have tried it
using a straight post request and have have no problems and slow loading
time is localized to the one user (ie. still works fine on the other
computers on my office network).

I have recorded this happening in Firefox, safari and IE6 & 7

My server is running debian with apache2 and php5

Just wondering if somebody can shed some light on what my problem may be?
Cheers

Will
Hi Will,

You might be approaching the issue the wrong way.

This sounds more like a connectivity problem to me than an Ajax problem.
You could try next time it happens on that PC if you can visit some
random website. Or check email.
Does that work?

I have seen this happening before (not Ajax, but just no connectivity
for no appearant reason) in officenetworks.

Replacing some hardware fixed the issue. (In our case an old hub that
randomly stopped hubbing.)

Alltough this is no explanation why restarting Apache helps....

Just my 2 cent.

Regards,
Erwin Moller
Oct 16 '07 #2

P: n/a
Hi Erwin

You may be correct in thinking the problem may have something to do with
the network hardware, i will try exchanging the switches and see if that
works.

Just wondering if you know of a network diagnostics or javascript
monitoring tool that would help?

Cheers

Will

--
Message posted using http://www.talkaboutprogramming.com/...ng.javascript/
More information at http://www.talkaboutprogramming.com/faq.html

Oct 16 '07 #3

P: n/a
willl69 wrote:
Hi Erwin

You may be correct in thinking the problem may have something to do with
the network hardware, i will try exchanging the switches and see if that
works.

Just wondering if you know of a network diagnostics or javascript
monitoring tool that would help?
Hi,

Sorry, not my expertice. I know a lot of these tools exist, google
around a little or ask in a decent newsgroup concerning networking.
I think simply checking other connectivity should help you enough. At
least you can see IF you have a connectivityproblem before you start
analyzing your whole LAN.

But still..... why does restarting Apache solve your problem?
Maybe something is wrong with the script that AJAX calls that makes it
hang somehow.

Anyway, I would start with checking the connectivity in the LAN first. I
have seen really strange problems in officelans before, but then again,
not my area of expertice. ;-)

Regards,
Erwin Moller

>
Cheers

Will

--
Message posted using http://www.talkaboutprogramming.com/...ng.javascript/
More information at http://www.talkaboutprogramming.com/faq.html
Oct 17 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.