Did you try to set -Xmx
explicitly (let's say to 64m)?
yes
If you can you could try to run some monitoring tool alongside the java process, e.g. • _*jstat*_ to monitor heap: `jstat -gc <PID> <repeat-interval-ms>` • _*jcmd <PID> <http://VM.info|VM.info>*_ - very useful (and verbose) info is generated but it takes a while to create; • _*jcmd <PID> VM.native_memory*_ - assuming you start JVM with `-XX:NativeMemoryTracking=summary` or `-XX:NativeMemoryTracking=detail` • _ps_ to monitor RSS • _pmap_ to get much more details about process memory mappings
1👍I will try but this is not so easy, there is no way to log into shell in cloud run. I was trying to run some commands from Java before.
Could you run multiple processes in your docker container?
i can do whatever container can do normally, so AFAIK it is possible but very not recommended
but for test purpose should be fine