VMware Modern Apps Community
DCasota
Expert
Expert

Make run John Deere work tracker examples on Photon OS

Hi,

I'm trying to make run the https://github.com/JohnDeere/work-tracker-examples on Photon OS. No Tanzu (yet), simple install.

tdnf install -y apache-maven
git clone https://github.com/JohnDeere/work-tracker-examples
cd ./work-tracker-examples
cd ./spring-example
mvn clean jetty:run


Why does this fail with the following error ?
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00007d0351000000, 2555904, 1) failed; error='Operation not permitted' (errno=1)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 2555904 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /work-tracker-examples/spring-boot-example/hs_err_pid990.log

The virtual machine has 64gb ram on Linux ph01 5.10.159-3.ph4-secure.

 

edited, here the findings so far :
For the John Deere project there seems to be an issue with Photon OS linux-secure + openjdk package.
On a generic Photon OS (tdnf remove -y linux-secure) the issue doesn't appear, but jetty server doesn't start successful ("Service Unavailable").

Reply
0 Kudos
0 Replies