weblogic在AIX上chown过后weblogic无法启动。启动日志报错如下:
JVMSHRC020E An error has occurred while opening semaphore
JVMSHRC336E Port layer error code = -302
JVMSHRC337E Platform error message: Permission denied
JVMSHRC028E Permission Denied
JVMJ9VM015W Initialization error for library j9shr24(11): JVMJ9VM009E J9VMDllMain failed
Could not create the Java virtual machine.

看报错应该是共享内存与权限相关。

因为使用了-Xshareclasses参数,IBM JDK的共享class。使用此参数默认会在/tmp/javasharedresources/下生成一些临时文件。由于weblogic被chown,没有权限读取原来生成的日志文件所以报错。把/tmp/javasharedresources/下weblogic用户的文件重新chown一次,weblogic启动正常。