Thursday, May 22, 2008
initial context - OOM
Creating intial context and not closing the context can lead to OOM condition based on the load. Either this needs to be cached or closed immediately after usage. Caching may not be possible when application connects to multiple App Server. Even though this is the better solution, some time forced to use close option. InitialContext.close makes that object GC collectable immediately. So it does not move tenured space, will be collected from new generation space.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment