Gateway crashing when trend page viewed?

Using 7.9.3.

Have a server with 8 gigs of ram, 6 allocated to Ignition gateway. When I open a client, normally about 10 - 15 minutes later the gateway will crash.

I have switched the garbage collector from the default to G1 Young Generation, G1 Old Generation.

The only slow queries I see seemingly come from some default historian or audit queries such as

which don’t seem unreasonably slow either nor too frequent.

I am attaching the wrapper.log file. I am not sure what else could be sucking up so many resources. Any help or other things to check is appreciated.

wrapper.log (1.0 MB)