Memory limit exceed

Hi, I’m working on a custom IBP Index value that calculates the difficulty of a route based on the degree of elevation gain per section, distance from the route, cumulative elevation gain, etc. It works well for routes of approximately 10 km, but on 90 km routes, I get a “Memory Limit Exceeded” error. What’s the cause? The script is the same for both 10 and 90 km routes, but it only happens on 90 km routes. How do I resolve this?

Could you please post the script or email it to me (david@intervals.icu). There are various ways of accessing data and so on that incur different memory usage and CPU cost. It is a tricky balance to protect the server and allow scripts to do useful stuff.

Thanks, it works now!