OpenCDSS / cdss-app-tstool-main

Colorado's Decision Support Systems (CDSS) TSTool application main program
GNU General Public License v3.0
1 stars 1 forks source link

Add feature to monitor JVM performance #160

Open smalers opened 3 years ago

smalers commented 3 years ago

Subject of the issue

There are cases where TSTool slows down appreciably, usually when running memory-intensive workflows. In some cases, the solution is to increase the startup -Xmx option to allow more memory. For 64-bit Java, the limitation is machine memory, whereas with 32-bit Java the limitation is the JVM limit, typically around 64GB.

Ideally TSTool could monitor memory and perhaps garbage collection activity and recommend a change in configuration. Maybe add a command that tracks memory as each command starts and ends. There is already a ProfileCommands command so maybe need to improve that or implement some default profiling and warn the user regardless of whether ProfileCommands is used.

Environment

Steps to reproduce

Run a large command file.

Expected Behavior

Should run fast.

Actual Behavior

Runs slow and may run out of heap memory.