Reputation: 2152
I have system make to monitoring a multiport hardware and camera, those camera's thread receive data to save images. This system having problem with OutOfMemory, he going allocate memory and have a OutOfMemory in 2 hours, i have 256 MB of heap memory in tomcat.
Waiting ideias, Ty...
Upvotes: 1
Views: 693
Reputation: 346476
Looks like you have a memory leak in your code, i.e. you are somewhere keeping references to object you no longer need and thereby prevent them from being garbage collected.
To find out which objects are causing the problem and where references to them are kept, use a heap or memory profiler.
The VisualVM tool that comes with newer JDK versions includes a heap profiler that is sufficient in most cases.
Upvotes: 4