When i run my java program from bash script, after some times i receive a message :
MyProgram.bash: line 30: 4388 Killed
i make a parameter of bash as maximum :
ulimit -Ss unlimited
ulimit -Sc unlimited
ulimit -Sn 4096
But when i make CTRL+C after excuting, i have this error :
OpenJDK 64-Bit Server VM warning: Exception java.lang.OutOfMemoryError occurred dispatching signal SIGINT to handler- the VM may need to be forcibly terminated
I add this information, when i run the same program whith the same paramater in another machine, i don’t have this exception !
I run my program with these arguments (I have 5Go in memory)
jvmargs="-d64 -Xms512m -Xmx3G -Xss1G"
My algorithm take a lot memory because i use serialization. So why i have killed message, and not an exception as OutOfMemoryError ? What can i do to resolve problem ? and why when i runit in another machine with the same parameter it’s work ?
Reread that error message:
If OpenJDK cannot correctly handle the interruption signal (because it is completely out of memory), it maybe resorts to killing itself.