xspanger3770 / GlobalQuake

Experimental application for monitoring earthquakes world-wide in near real time. Capable of issuing its own earthquake early warnings (EEW).
MIT License
281 stars 41 forks source link

GQ freeze on AMD machine #255

Closed stevebiturbo closed 3 months ago

stevebiturbo commented 4 months ago

Ran into an issue with GQ on AMD machine. Both latest and previous versions have the same issue. Machine in question is Ryzen 5 5600 6-Core Processor, with 32Gb DDR4 RAM running at 3200MHz.

By defualt GQ only uses 1GB of ram. Tried changing it, but it comes with an error "Error occurred during initialization of VM Initial heap size set to a larger value than the maximum heap size"

If i let it to run with only 1GB of ram, and by selecting all stations, GQ freezes, with these errors coming up "Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "tinylog-WritingThread"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "ForkJoinPool.commonPool-worker-3"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "pool-57-thread-10"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "ForkJoinPool.commonPool-worker-8"

P.S. on all Intel based machine I have, GQ runs with no problems.

Running on Win11 Java 21.0.2 GlobalQuake v0.11.0_pre-1

JABirchall commented 4 months ago

On my threadripper machine its using 16gb no problem.

stevebiturbo commented 4 months ago

I don't know why it wont let me change how much ram it should use. on intels i can change it, but not here.

stevebiturbo commented 3 months ago

Found the problem. Under system environment variables, JAVA_OPTION was set to 1024mb, using line -XmX1024. Removin that variable, solved the issue.