I have installed an agent on a weblogic server. After few hours, the following message appeared :
[DevTest AGENT:A][WARN][Stats Gathering Thread][02/26 13:13:37 (134)] Heap size approaching limit
Then the HEAP memory had been incremented by about 30% (768 -> 1024 in order to make disappear the message.
But the message still appears.
Is this due to the behaviour of the GC or something else ?
Thanks by advance.
When you add the DevTest agent, increasing the heap size by 30% is a good rule of thumb. However depending on message size, message load, agent capture levels, etc... the memory may need to be adjusted a little more.
The default setting that will trigger the "Heap size approaching limit" are:
Memory: > 95% of heap or > 90% of permgen for 10 seconds.
You can take three approaches for this message:
1. Ignore the message, it is only a warning. It may indicate an issue but if your application is running correctly and you rarely see this message, it can safely be ignored.
2. Increase the JVM's heap size. In your case, 1280 or 1536 maybe required.
3. Increase the time interval required to trigger the warning message.
CA Application Insight Support