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

Slow website after some time (with ajax interval of 10 seconds)

P: 2
Hi. I have created a Hotel Management System which is loaded with scripts especially ajax.

The main interface comprises of checked in guests which is being updated/refreshed every 10 seconds.

The reason for that is to inform the user (cashier) that a guest's stay is over.

The problem is, when I have 80 or more rows (checkin), the system slows down. It's consuming a lot of memory.

My resolution was to upgrade the RAM to 6GB and increase the cache size of google chrome to 200MB.

Unfortunately, the problem still exists.

I appreciate your help and time. Thank you.

PS I attached an image of the user interface.
Attached Images
File Type: jpg Capture.jpg (66.7 KB, 81 views)
Mar 2 '14 #1
Share this Question
Share on Google+
3 Replies

Expert Mod 5K+
P: 8,639
do you have an AJAX request for each row? or do you get all the updated data in one request?
Mar 2 '14 #2

P: 2
Hi Dormilich. Thanks for spending your time helping me with this.

The function contains a lot of ajax requests but the data is not requested per row.

Here's the code for your reference. THanks.

The function starts from Line 9 to 158.
Mar 3 '14 #3

Expert Mod 5K+
P: 8,639
the problem I see is line #76. each time the getContents() function runs, you add another click handler.
Mar 3 '14 #4

Post your reply

Sign in to post your reply or Sign up for a free account.