php - Java on CentOS : not enough memory -
when make command in php like:
exec('java -version > test.txt'); the file test.txt created error inside :
there insufficient memory java runtime environment continue.
native memory allocation (mmap) failed map 2555904 bytes committing reserved memory.
an error report file more information saved as: /tmp/hs_err_pid25505.log
the error report file does not exist @ location.
when try execute same command in shell window, works:
openjdk version "1.8.0_101"
openjdk runtime environment (build 1.8.0_101-b13) openjdk 64-bit server vm (build 25.101-b13, mixed mode)
the command i'm trying execute not java -version more complicated one. however, result same.
i think problem comes php. until have tried increase memory_limit no avail. i've seen people having similar problems solutions proposed don't work.
set memory xms , xmx options java. not php guy have shared links php also, verify if setting both options.
see if can fork process execution of java independent thread , wait
what xms , xmx parameters when starting jvms?
Comments
Post a Comment