php - java file executed from command line but not from browser(apache)? -


I have a Java file that is starting with a shell script if I execute a shell script on the command line It is executing the Java file without any issue, but if I execute this shell script from the browser (I have an index.php that executes this script in the Linux server) then this Java file does not execute Is doing Shell Crypt script is executed properly if I remove the Java execution line shell script.

I get an error when executed from the browser below. Error from browser: Java Hotspot (TM) 64-bit server VM warning: Notice: OS :: Command_meMerry (0x00007fcf589ac000, 2555904, 1) failed; Error = 'Permission denied' (error # 13) # # There is insufficient memory to continue for Java Runtime Environment. # The original memory allocation (malloc) failed to allocate 2555 9 4 bytes for reserve memory. An error report file containing # more information has been saved as: # /tmp/hs_err_pid306.log # There is insufficient memory to continue for the Java runtime environment. # The original memory allocation (malloc) failed to allocate 2555 9 4 bytes for reserve memory. # Possible reason: # system physical RAM or swap space is out in # 32 bit mode, the process size limit was hit # Possible Solution: Increase # system on # physical memory or swap space # Check memory reduces load Swap Support Shop is a 64 bit OS # Decrease full Java usage on Java Stack size is 64 bit Java (-xmx / -xms) # Subtract the number of x-threads with xxx # Subtract java thread pile size (-xss) # set big code Cache: ReservedCodeCacheSize = # This Output The file may be small or incomplete # # Out of memory error (os_linux.cpp: 2726), pd = 306, tid = 140528680765184 ## JRE Version: (7.0_51-B13) (build) # Java VM: Java Hotspot (TM) 64-bit server VM (24.51-B3 mixed mode Linux-AMD 64 compressed ops) failed to write core dumps. Core dump has been disabled To enable core dumping, try "Unlimited-Unlimited" before resuming Java

Please tell me how to fix this problem Please help me, please help me. Stuck with this problem from the past week: |

Permission problem You probably run this Java file as a different user from a browser.

An error report file containing more information has been saved as: # /tmp/hs_err_pid306.log What is this error called?


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -