TOMCAT error messages at startup
search cancel

TOMCAT error messages at startup

book

Article ID: 230521

calendar_today

Updated On:

Products

COMMON SERVICES FOR Z/OS

Issue/Introduction

Apache Tomcat 9.0.37 has just been installed. Starting the mainframe TOMCAT started task receiving the following messages;

JVMSHRC020E An error has occurred while opening semaphore                                                          
JVMSHRC336E Port layer error code = -262894                                                                        
JVMSHRC337E Platform error message: semctl : EDC5111I Permission denied.                                           
JVMSHRC028E Permission Denied                                                                                      
JVMSHRC670I Error recovery: attempting to use shared cache in readonly mode if the shared memory region exists, in 
response to "-Xshareclasses:nonfatal" option.                                                                      
JVMSHRC659E An error has occurred while opening shared memory                                                      
JVMSHRC336E Port layer error code = -459502                                                                        
JVMSHRC337E Platform error message: shmctl : EDC5111I Permission denied.                                           
JVMSHRC028E Permission Denied                                                                                      
JVMSHRC627I  Recreation of shared memory control file is not allowed when running in read-only mode.                
JVMSHRC840E Failed to start up the shared cache.                                                                   
JVMSHRC686I Failed to startup shared class cache. Continue without using it as -Xshareclasses:nonfatal is specified
JVMJZBL1012I Java Virtual Machine created. Version information follows:                                            
java version "1.8.0_291"                                                                                           
Java(TM) SE Runtime Environment (build 8.0.6.30 - pmz3180sr6fp30-20210507_01(SR6 FP30))                            
IBM J9 VM (build 2.9, JRE 1.8.0 z/OS s390-31-Bit 20210415_469669 (JIT enabled, AOT enabled)

Environment

 

 

Resolution

It seems that these errors come from interaction in the shared memory. 

Things to try:

  1. Comment out the following statement in the TOMSVXML member and restart the Tomcat task:

    #IJO="$IJO -Xshareclasses:name=cache1_%u"

  2. Is the user of the TOMCAT STC able to access the path:  "/tmp/javasharedresources/"?
    • This is where Tomcat creates the cache files based on -Xshareclasses
    • By default, Common Services Apache Tomcat has the -Xshareclasses option to improve performance
  3. To check for possible leaks of orphaned shared memory, please issue this unix command and Look for entries whose owner is the TOMCAT user:

ipcs -a