Memory Leak

I have a solution running on an R3.ExtraLarge Amazon instance with 50 users all of whom are using webclient. Periodically we are seeing a rise is CPU usage, and I am guessing this is also Memory usage although Amazon does not report memory metrics in an easily accessible way. Does anyone have any tips on how/where to start tracking down memory leaks of this nature ?

I have tried:

  • Performance Data - this is not showing anything abnormal
  • Database is static over the period so we are not getting any spikes in traffic
  • I can see nothing in the logs around the time the memory starts to grow
  • Growth is over 2-3 hours from 5-8% to 90+% CPU IF the machine/servoy is rebooted then CPU usage comes back to normal with same user base and stays there for several hours
  • There is nothing in the usage pattern to suggest a specific event causes the problem
  • The CPU is stable over night and drops down to 1-2% even if the users remain logged in, however IF rebooted before users start its remain stable to mid afternoon if not its maxed out by 10:30/11

TBH I am now lost for ideas where to look to solve this and am struggling to see how I can expand this solution using Servoy if its unable to handle more than 50 odd users. We need it to double over the next few months at least and the client is justifiably worried that Servoy may not be the right product for this next stage. The application is complex and has 300+ forms so a change from Servoy is far from ideal for anyone.

Best
Gordon

Hi Gordon,
R3.ExtraLarge has at least 4 vCpu and 30+GB of RAM if I remember correctly. Reaching 90% of cpu usage is quite weird.
What operating system are you using? What java version (32/64 and 6/7/8) are you using?
When you say 90% of CPU load do you mean of 1 of the 4+ cpu or 90% of the total available CPU power?
Can you check in your operating system which processing is using so much CPU time? Can you check how much memory is servoy using?

Maybe with more details I can give you some hints.
If you need professional support send me a private message and I will see if I can help you.

Hi Nicola
Reaching 90% CPU being weird was exactly my conclusion

OS Ubuntu 14.04.1 LTS

java version “1.8.0_20”
Java™ SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot™ 64-Bit Server VM (build 25.20-b23, mixed mode)

See the attached cloud watch chart which as far as I can see is 90% of all 4

Yes I would be interested in your professional support and I will certainly contact you direct

Many thanks
Gordon

I see.
The good news is that you are using Linux, the bad news is that I would need to have a look at the console to figure out what’s happening. It could be a lot of things: if it’s the Servoy solution (it could be some other process as well) it could be some misconfigured cron job method or some zombie batch processor or something else, difficult to guess.