Getting error in metaspace

#1
Hello there , I am getting following error when i run java command in litespeed , When i switch to apache its working fine .


java -jar RegisterNewone.jar "xxxxx" "xxxxxx"

Error occurred during initialization of VM [1] => Could not allocate metaspace: 1073741824 bytes
 
#2
Code is like this

<?php
shell_exec("java -jar RegisterNewone.jar "xxxxx" "xxxxxx"");

?>
Error

Error occurred during initialization of VM [1] => Could not allocate metaspace: 1073741824 bytes

But when switch back to apache it works .
 
Top