-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
non static logger or LoggerProducer = cpu usage #632
Labels
bug
Something isn't working
Comments
ClementBareth
added a commit
that referenced
this issue
Nov 16, 2022
ClementBareth
added a commit
that referenced
this issue
Nov 17, 2022
ClementBareth
added a commit
that referenced
this issue
Nov 17, 2022
# Conflicts: # meveo-admin-ejbs/src/main/java/org/meveo/service/admin/impl/ModuleObserver.java # meveo-admin-ejbs/src/main/java/org/meveo/service/storage/FileSystemImpl.java # meveo-admin-ejbs/src/main/java/org/meveo/service/technicalservice/wsendpoint/WebsocketExecutionService.java # meveo-admin-ejbs/src/main/java/org/meveo/service/technicalservice/wsendpoint/WebsocketManager.java # meveo-admin/ejbs/src/main/java/org/meveo/admin/util/LoggerProducer.java # meveo-admin/ejbs/src/main/java/org/meveo/persistence/CrossStorageService.java # meveo-admin/ejbs/src/main/java/org/meveo/service/base/BusinessService.java # meveo-admin/ejbs/src/main/java/org/meveo/service/communication/impl/WebsocketNotifManager.java # meveo-admin/ejbs/src/main/java/org/meveo/service/custom/CustomEntityTemplateCompiler.java # meveo-admin/ejbs/src/main/java/org/meveo/service/job/JobInstanceService.java # meveo-admin/ejbs/src/main/java/org/meveo/service/script/ScriptInstanceService.java # meveo-admin/ejbs/src/main/java/org/meveo/service/technicalservice/wsendpoint/WebsocketServerEndpoint.java # meveo-api/src/main/java/org/meveo/api/git/GitRepositoryFileFilter.java # meveo-api/src/main/java/org/meveo/api/git/GitRepositoryWatcher.java # meveo-api/src/main/java/org/meveo/api/module/DefaultMeveoModuleInitializer.java
ClementBareth
added a commit
that referenced
this issue
Nov 17, 2022
# Conflicts: # meveo-admin/ejbs/src/main/java/org/meveo/service/technicalservice/wsendpoint/WebsocketServerEndpoint.java # meveo-admin/web/src/main/java/org/meveo/admin/action/admin/module/MeveoModuleBean.java # meveo-api/src/main/java/org/meveo/api/ScriptInstanceApi.java # meveo-el-resolver/src/main/java/org/meveo/elresolver/ValueExpressionWrapper.java
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When i analyze the activity of a server with a high cpu usage. I can see that 90% of the threads are initializing a logger :
java.lang.Thread.State: RUNNABLE at java.lang.StackStreamFactory$AbstractStackWalker.fetchStackFrames(java.base@11.0.7/Native Method) at java.lang.StackStreamFactory$AbstractStackWalker.fetchStackFrames(java.base@11.0.7/StackStreamFactory.java:386) at java.lang.StackStreamFactory$AbstractStackWalker.getNextBatch(java.base@11.0.7/StackStreamFactory.java:322) at java.lang.StackStreamFactory$AbstractStackWalker.peekFrame(java.base@11.0.7/StackStreamFactory.java:263) at java.lang.StackStreamFactory$AbstractStackWalker.hasNext(java.base@11.0.7/StackStreamFactory.java:351) at java.lang.StackStreamFactory$StackFrameTraverser.tryAdvance(java.base@11.0.7/StackStreamFactory.java:593) at java.util.Spliterators$1Adapter.hasNext(java.base@11.0.7/Spliterators.java:681) at org.jboss.logmanager.JDKSpecific$FindAllWalkFunction.apply(JDKSpecific.java:208) at org.jboss.logmanager.JDKSpecific$FindAllWalkFunction.apply(JDKSpecific.java:198) at java.lang.StackStreamFactory$StackFrameTraverser.consumeFrames(java.base@11.0.7/StackStreamFactory.java:534) at java.lang.StackStreamFactory$AbstractStackWalker.doStackWalk(java.base@11.0.7/StackStreamFactory.java:306) at java.lang.StackStreamFactory$AbstractStackWalker.callStackWalk(java.base@11.0.7/Native Method) at java.lang.StackStreamFactory$AbstractStackWalker.beginStackWalk(java.base@11.0.7/StackStreamFactory.java:370) at java.lang.StackStreamFactory$AbstractStackWalker.walk(java.base@11.0.7/StackStreamFactory.java:243) at java.lang.StackWalker.walk(java.base@11.0.7/StackWalker.java:498) at org.jboss.logmanager.JDKSpecific.findCallingClasses(JDKSpecific.java:72) at org.jboss.logmanager.ClassLoaderLogContextSelector$1.run(ClassLoaderLogContextSelector.java:93) at org.jboss.logmanager.ClassLoaderLogContextSelector$1.run(ClassLoaderLogContextSelector.java:91) at org.jboss.logmanager.ClassLoaderLogContextSelector.getLogContext(ClassLoaderLogContextSelector.java:121) at org.jboss.logmanager.ThreadLocalLogContextSelector.getLogContext(ThreadLocalLogContextSelector.java:55) at org.jboss.as.logging.logmanager.WildFlyLogContextSelectorImpl.getLogContext(WildFlyLogContextSelectorImpl.java:72) at org.jboss.logmanager.LogContext.getLogContext(LogContext.java:301) at org.slf4j.impl.Slf4jLoggerFactory.getLogger(Slf4jLoggerFactory.java:37) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:358) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:383) at org.meveo.service.base.BaseService.<init>(BaseService.java:47)
Some threads mention the use of org.meveo.admin.util.LoggerProducer
The text was updated successfully, but these errors were encountered: