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?

php : settings memory_limits > 1024m not work

ini_set("memory_limit") in php 5.3.3 not working @ all


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -