jsl LiteCart Fan Fra Malaysia Medlem siden jsl 1 feb. 2021 21:11 Hello, How are you? I have an issue which hit the limit of number processes of server so that case Service 503 error. I checked which request/file had been called so many times, until found the http://...../ajax/cart.json?_=1612208522568. Most of request to server which cause Number of processes Limit-503 error were just these Ajax updating request. In the picture, server already was gone to 503 error. From here, I have two questions: 1) How can we disable this kind of Ajax-cart.json request , when site is in Maintenance Mode? 2) While visitors staying in my site, even without any operation, it keeps sending Ajax-Cart.json request to server every one minute. When these kind of requests are in almost same short band of time, they hit the Limit of Server processes with some other kind of requests. [img]https://i.ibb.co/yfh45Yx/number-of-processes-limit.png[/img] How can we solve this out? Regards!
tim Founder Fra Sweden Medlem siden tim 1 feb. 2021 22:01 Is it possible your problem resides from a never ending loop? There are 404 not found objects in the 404 page: GET http://ittoysline.com/678687 404 (Not Found) GET http://ittoysline.com/includes/templates/default.catalog/images/cart.svg 404 (Not Found) The cart.json refreshes the cart and also function as a keep alive process to prevent your session from timing out. I would get to the root of your issue rather than solving the effect.
jsl LiteCart Fan Fra Malaysia Medlem siden jsl 2 feb. 2021 03:34 Thanks you. I will check any possibilities of loop related to Processes limit. And 404 Errors you pointed are not source charge of processes limited, GET http://ittoysline.com/678687 404 (Not Found) GET http://ittoysline.com/includes/templates/default.catalog/images/cart.svg 404 (Not Found) these things that you saw , is temporal site, there isn't any 404 error in real site. So Cart refresh action every one minute can't be replaced with something not affecting the Processes limit-503 error? Any alternative way? Regards!
tim Founder Fra Sweden Medlem siden tim 2 feb. 2021 04:57 Monitor your browser's behavior. One AJAX request doesn't make the server processes shoot high. Monitor your server's processes with the CLI command "ps aux". Check LiteCart's error log. Check apache's error log.
jsl LiteCart Fan Fra Malaysia Medlem siden jsl 2 feb. 2021 05:23 Thanks, yes it's not only one Ajax request, but also many requests from customers' browser. Because they just open site page in their browser ,and then stay in it. And then if 100 customers are in my site, 100 ajax requests are sent to my server at a once, and then it makes server 503 error ,since it's over 75 processes limit. So I want to know any certain alternative way to refresh cart without ajax request, or Can I expect any solution from higher version?
jsl LiteCart Fan Fra Malaysia Medlem siden jsl 2 feb. 2021 10:12 Hello, Tim It can't be solved? since I have checked all logs of litecart and Processes with CLI in Cpanel terminel. And killed all processes , but because Customer still stay in site, it keep sending ajax request to server every one minute. And then 503 error occured. Please help me , any hint or suggestion for this?
tim Founder Fra Sweden Medlem siden tim 2 feb. 2021 23:28 The AJAX request is defined in app.js. I can have a look at the server and site if you like. You are entitled to create a support ticket. Click here to begin.
jsl LiteCart Fan Fra Malaysia Medlem siden jsl 5 feb. 2021 16:11 Thank you so much Tim, I found the error and get it fixed.. It is totally my own mistake .. Again thank you so much :-)