We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I've got an application in a client space that is having some strange memory errors. In the end the application crashes with a windows error to "Close programs to prevent information loss. Your computer is low on memory. Save your files and close these programs: Java(TM) Platform SE binary"
The application runs flawlessly for weeks in our studio, but once installed with their monitors and network, this error occurs once every few days. I feel like is something to do with the monitor cables they are using as it is a hodgepodge of adapters and cables that just looks like a problem waiting to happen. That is also the biggest difference in the setups from our office and their installation.
I've set the starting heap to 2GB and the max heap to 4GB and the computer has 12GB of memory installed so it should have plenty of overhead. In our environment and 90% of the time it is in their environment the entire app uses around 2.6GB of memory (fluctuating when playing a video, but is then garbage collected effectively).
My best guess, and the only way we have been able to come close to reproducing it, is that the video cables are faulty and causing windows to re-position the screens, and that somehow causes it to lose reference to some memory. I have been able to reproduce this twice, but the app recovers each time. I unplug and re-plug a cable, and the memory spikes twice, but then levels back off. In one case it didn't level back off and remained at 95% of the system's memory. So it seems clear that their cable setup is causing the issue, but ideally the application could recover from this issue without crashing.
It's a pretty massive program with quite a few confidential dependancies so I can't really post the code here unfortunately. I can share this demo video we made of it running to give you an idea of what it's doing:
Any thoughts on what I could try? Need some more information? Again, sorry for the no code...