Before we get started because the answer seems obvious, the machine in question has the maximum heap space set to 8GB whereas other machines capable of running it have it at 1GB, so it's not a maximum heap size issue. Alright, let's dive in.
I'm doing a traffic simulation for a school project, and due to time constraints we did a lot of "quick and dirty" solutions that led to not optimizing our memory usage properly. Over the last two weeks we spent time profiling our program, identifying memory leaks, and reducing precision to get our overall memory overhead to around 500MB (according to JProfiler).
The problem is, only certain laptops are capable of running the simulation. My laptop (16GB RAM, i7 CPU) is not capable of running the sim. Of course, first thing I did was to increase my JVM's maximum heap space incrementally, getting all the way up to 8GB. The thing is, according to JProfiler we're maxing out at about 1GB memory after compilation and then dropping down to a steady 500MB throughout the sim.
All group members are running the same version of Java (9) and the same SDK version. We've even tried working in different versions of Java, to no avail. I'm working on the most recent version and have verified multiple times that we're running the exact same program with the exact same settings in the exact same environment yet for some reason only my computer has heap space issues.
Is there anyone who has any idea what might be wrong here? I've reinstalled JVM to no avail, and monitoring my computer during compilation I don't see more than around 2-3GB being used at any time, so I'm obviously not using all 8GB of the heap space I'm affording the virtual machine. There seems to be something seriously wrong, and any help would be greatly appreciated!