Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
OpenSearch 2.16.0
Describe the issue:
When I try to enable Performance Analyzer plugin using API,
POST /_plugins/_performanceanalyzer/cluster/config
{"enabled": true}
there is an Error logs
[2024-09-04T16:38:30,207][ERROR][o.o.p.c.o.OSGlobals ] [opensearch01] Error in static initialization of OSGlobals with exception: java.security.AccessControlException: access denied ("java.io.FilePermission" "/proc/self/task" "read")
java.security.AccessControlException: access denied ("java.io.FilePermission" "/proc/self/task" "read")
at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:488) ~[?:?]
at java.base/java.security.AccessController.checkPermission(AccessController.java:1071) ~[?:?]
at java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:411) ~[?:?]
at java.base/java.lang.SecurityManager.checkRead(SecurityManager.java:742) ~[?:?]
at java.base/java.io.File.normalizedList(File.java:1173) ~[?:?]
at java.base/java.io.File.listFiles(File.java:1271) ~[?:?]
at org.opensearch.performanceanalyzer.commons.os.OSGlobals.enumTids(OSGlobals.java:74) ~[performance-analyzer-commons-1.5.0.jar:?]
at org.opensearch.performanceanalyzer.commons.os.OSGlobals.<clinit>(OSGlobals.java:33) [performance-analyzer-commons-1.5.0.jar:?]
at org.opensearch.performanceanalyzer.commons.metrics_generator.linux.LinuxOSMetricsGenerator.getPid(LinuxOSMetricsGenerator.java:35) [performance-analyzer-commons-1.5.0.jar:?]
at org.opensearch.performanceanalyzer.commons.jvm.ThreadList.<clinit>(ThreadList.java:43) [performance-analyzer-commons-1.5.0.jar:?]
at org.opensearch.performanceanalyzer.commons.util.ThreadIDUtil.getNativeThreadId(ThreadIDUtil.java:21) [performance-analyzer-commons-1.5.0.jar:?]
at org.opensearch.performanceanalyzer.commons.util.ThreadIDUtil.getNativeCurrentThreadId(ThreadIDUtil.java:17) [performance-analyzer-commons-1.5.0.jar:?]
at org.opensearch.performanceanalyzer.transport.PerformanceAnalyzerTransportChannel.set(PerformanceAnalyzerTransportChannel.java:45) [opensearch-performance-analyzer-2.16.0.0.jar:2.16.0.0]
at org.opensearch.performanceanalyzer.transport.PerformanceAnalyzerTransportRequestHandler.getShardBulkChannel(PerformanceAnalyzerTransportRequestHandler.java:92) [opensearch-performance-analyzer-2.16.0.0.jar:2.16.0.0]
at org.opensearch.performanceanalyzer.transport.PerformanceAnalyzerTransportRequestHandler.getChannel(PerformanceAnalyzerTransportRequestHandler.java:54) [opensearch-performance-analyzer-2.16.0.0.jar:2.16.0.0]
at org.opensearch.performanceanalyzer.transport.PerformanceAnalyzerTransportRequestHandler.messageReceived(PerformanceAnalyzerTransportRequestHandler.java:44) [opensearch-performance-analyzer-2.16.0.0.jar:2.16.0.0]
...
logs are added in performance analyzer directory
but, no response from localhost:9600
every functions are available except performance analyzer
Configuration:
OS : RHEL 8.5
JDK : bundled jdk
default configuration using opensearch-tar-install.sh
(including -Djava.security.manager=allow …)
Relevant Logs or Screenshots:
maybe similar issue