-
1. Re: OutOfMemoryErrors under load
jonlee Sep 10, 2003 5:32 AM (in response to sgregg67)Employ jmemprof or Jprobe to profile your memory use. You might be able to use optimizeit to a more limited degree. See the performance thread on memory study. You can also do the simple thing like verbose:gc to get an idea of a general area of memory use. Is it possible that you are getting a JDBC related memory leak or breakage?
-
2. Re: OutOfMemoryErrors under load
akirdat Sep 10, 2003 2:46 PM (in response to sgregg67)I have seen this problem before. This is what is going on: The number of threads a JVM can create goes down as you increase the stack size (-mx1800m). The way I solved my problem was to balance the number of threads I need for my app and the memory needed to run my application.
Also IBM's JVM handles these issues very nicely on Linux. -
3. Re: OutOfMemoryErrors under load
jonlee Sep 10, 2003 6:33 PM (in response to sgregg67)Agreed. Some of the issues that people raise here I have never experienced on a production Linux boxen but we exclusively use the IBM JDK.
-
4. Re: OutOfMemoryErrors under load
sgregg67 Sep 10, 2003 6:59 PM (in response to sgregg67)Thanks for the input - I have changed to using the IBM JDK1.4, and have put our code through the jmemprof profiler - this has pointed out some weaknesses in our code, and potentially in the oracle OCI drivers - that's tomorrows task.
Thanks Again for the input - I think I'll solve this using IBM and fixing our code,
Stephen. -
5. Re: OutOfMemoryErrors under load
colinws Sep 11, 2003 3:44 AM (in response to sgregg67)Oracle OCI drivers.
Memory leaks in native code, not visible in the normal information available from the JVM.
First try the thin drivers. This cured similar problems for us. -
6. Re: OutOfMemoryErrors under load
akirdat Sep 11, 2003 3:31 PM (in response to sgregg67)I haven't noticed any problems with the OCI driver. We have an app running in production for over a year now with no problems related to Oracle's OCI driver.
-
7. Re: OutOfMemoryErrors under load
ofels Oct 10, 2003 6:17 AM (in response to sgregg67)It might be related to caching issues.
Entity beans are created and then cached for a specific amount of time. The standardjboss.xml holds a threshold entry which specifies how long entities are cached by the container, if you lower this value it will definitely decrease memory usage as beans are deactivated earlier.
We had such an issue as we are importing and distributing lots of measurement data where the beans are created once but not needed any more afterwards.
Increasing the threshold also increases the overall memory level while decreasing it lowers memory consumption. This also increases performance btw.
Oliver -
8. Re: OutOfMemoryErrors under load
rabbuhl Oct 15, 2003 6:55 AM (in response to sgregg67)We had the same problem and it was caused by memory leaks in the OCI driver. Switching to the thin driver solved the problem.
-
9. Re: OutOfMemoryErrors under load
borus Nov 2, 2003 8:54 AM (in response to sgregg67)Never use OCI drivers, use only thin driver or 3rd party drivers. This solved problems in many projects I was involved in.