Lotus 8.5 Xpage memory issue

we found when we use the xpage application,the domino http service alway accumulate allocate memory.(didn’t release automatically,except restart http server)is there any way to release the http memory automatically?Many thanks.

Subject: Fowarded to development. Rgds, Edel

Subject: inquire again.any standard coding can be used?

Is there any way to release object memory in xpage?any standard coding can be used?I try to set null for the variable but it seems the memory couldn’t release automatically.below is code example:

viewParameter=database.getView(“viewParameter”);

viewParameter=null;

Subject: same problem

We have the same issue, memory is not freed up.I read that some mysterious new setting was introduced (or planned to be) in 8.5.1, but haven’t found any trace of it.

Any help is greatly appreciated.

Tibor

Subject: It won’t be freed up. This is actually JVM memory … welcome to Java Memory Management!

XPages run in a JVM inside the HTTP task and therefore the memory that you see HTTP using is in part JVM memory. So typically this would grow and grow and grow to a limit parameter that can be specified in notes.ini (starting in Notes 8.5.1) called HTTPJVMMaxHeapSize. HTTPJVMMaxHeapSize=256M by default. So JVM memory will grow until reaches 256M, and enters the standard Java garbage collector that will free up memory as needed, when needed. If there is no more memory that the garbage collector can free, you get an OutofMemory error and now you know you need to increase that parameter in notes.ini, or better yet move to 64-bit Domino where the JVM for XPages is no longer limited to 1GB max.

My 2 cents …

Subject: Http memory

There are no options to release http memory, http memory is allocated by many different domino sub systems. Many Domino sub systems use memory pools for memory allocations and will hold on to memory that is allocated for performance purposes.

Are you seeing out of memory errors?

If so, the problem may be a memory leak. if that is the case the best course of action will be to raise a PMR with support. Support will need nsd log files taken over a period of time to help narrow what subsystem/area is causing the memory leak.

Subject: is there any way to release object memory in xpage

Is there any way to release object memory in xpage?I try to set null for the variable but it seems the memory couldn’t release automatically.below is code example:

viewParameter=database.getView(“viewParameter”);

viewParameter=null;