Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-7703

Big memory consumption during first start leads to Error compiling user profile and heap error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.4.2
    • Fix Version/s: 4.5, 4.4.2
    • Component/s: None
    • Labels:
    • Subscription:
      Internal
    • Backport Version:

      Description

      Training environment of midpoint, less than 100 users, memory limited to 3 GB (Xmx)

      Usually everything works, but this happened already twice.

      Symptom in GUI was the Basic panel was not shown when editing any object.

      Log:

      
      2022-03-03 09:05:00,385 [] [main] INFO (org.quartz.impl.jdbcjobstore.JobStoreTX): Removed 0 'complete' triggers.
      2022-03-03 09:05:00,387 [] [main] INFO (org.quartz.impl.jdbcjobstore.JobStoreTX): Removed 0 stale fired job entries.
      2022-03-03 09:05:00,430 [] [main] INFO (org.quartz.core.QuartzScheduler): Scheduler midPointScheduler_$_DefaultNode started.
      2022-03-03 09:05:25,131 [] [http-nio-8080-exec-1] INFO (org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/midpoint]): Initializing Spring DispatcherServlet 'dispatcherServlet'
      2022-03-03 09:05:25,132 [] [http-nio-8080-exec-1] INFO (org.springframework.web.servlet.DispatcherServlet): Initializing Servlet 'dispatcherServlet'
      2022-03-03 09:05:25,134 [] [http-nio-8080-exec-1] INFO (org.springframework.web.servlet.DispatcherServlet): Completed initialization in 2 ms
      2022-03-03 09:05:34,989 [] [http-nio-8080-exec-2] INFO (org.apache.wicket.proxy.LazyInitProxyFactory): Using Byte Buddy proxy factory
      2022-03-03 09:06:07,006 [] [midPointScheduler_Worker-3] ERROR (com.evolveum.midpoint.model.impl.security.GuiProfiledPrincipalManagerImpl): Error compiling user profile for GuiProfiledPrincipal(user:00000000-0000-0000-0000-000000000002(administrator), autz=[Authorization([http://midpoint.evolveum.com/xml/ns/public/security/authorization-3#all])]): Uncaught exception during scan
      io.github.classgraph.ClassGraphException: Uncaught exception during scan
              at io.github.classgraph.ClassGraph.scan(ClassGraph.java:1606)
              at io.github.classgraph.ClassGraph.scan(ClassGraph.java:1623)
              at io.github.classgraph.ClassGraph.scan(ClassGraph.java:1636)
              at com.evolveum.midpoint.util.ClassPathUtil.scanClasses(ClassPathUtil.java:48)
              at com.evolveum.midpoint.gui.api.DefaultGuiConfigurationCompiler.collectClasses(DefaultGuiConfigurationCompiler.java:330)
              at com.evolveum.midpoint.gui.api.DefaultGuiConfigurationCompiler.collectPanelInstanceClasses(DefaultGuiConfigurationCompiler.java:319)
              at com.evolveum.midpoint.gui.api.DefaultGuiConfigurationCompiler.postProcess(DefaultGuiConfigurationCompiler.java:109)
              at com.evolveum.midpoint.model.impl.security.GuiProfileCompilerRegistryImpl.invokeCompiler(GuiProfileCompilerRegistryImpl.java:23)
              at com.evolveum.midpoint.model.impl.security.GuiProfileCompiler.compileFocusProfile(GuiProfileCompiler.java:95)
              at com.evolveum.midpoint.model.impl.security.GuiProfiledPrincipalManagerImpl.initializePrincipalFromAssignments(GuiProfiledPrincipalManagerImpl.java:266)
              at com.evolveum.midpoint.model.impl.security.GuiProfiledPrincipalManagerImpl.getPrincipal(GuiProfiledPrincipalManagerImpl.java:144)
              at com.evolveum.midpoint.model.impl.security.GuiProfiledPrincipalManagerImpl.getPrincipal(GuiProfiledPrincipalManagerImpl.java:129)
              at com.evolveum.midpoint.model.impl.security.GuiProfiledPrincipalManagerImpl.getPrincipal(GuiProfiledPrincipalManagerImpl.java:68)
              at com.evolveum.midpoint.security.impl.SecurityContextManagerImpl.setupPreAuthenticatedSecurityContext(SecurityContextManagerImpl.java:118)
              at com.evolveum.midpoint.task.quartzimpl.run.JobExecutor.setupSecurityContext(JobExecutor.java:171)
              at com.evolveum.midpoint.task.quartzimpl.run.JobExecutor.executeInternal(JobExecutor.java:123)
              at com.evolveum.midpoint.task.quartzimpl.run.JobExecutor.execute(JobExecutor.java:68)
              at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
              at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:588)
      Caused by: java.lang.OutOfMemoryError: Java heap space
              at nonapi.io.github.classgraph.fileslice.reader.ClassfileReader.<init>(ClassfileReader.java:141)
              at io.github.classgraph.ClasspathElementZip$1.openClassfile(ClasspathElementZip.java:409)
              at io.github.classgraph.Classfile.<init>(Classfile.java:1925)
              at io.github.classgraph.Scanner$ClassfileScannerWorkUnitProcessor.processWorkUnit(Scanner.java:741)
              at io.github.classgraph.Scanner$ClassfileScannerWorkUnitProcessor.processWorkUnit(Scanner.java:664)
              at nonapi.io.github.classgraph.concurrency.WorkQueue.runWorkLoop(WorkQueue.java:246)
              at nonapi.io.github.classgraph.concurrency.WorkQueue.access$000(WorkQueue.java:50)
              at nonapi.io.github.classgraph.concurrency.WorkQueue$1.call(WorkQueue.java:201)
              at nonapi.io.github.classgraph.concurrency.WorkQueue$1.call(WorkQueue.java:198)
              at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
              at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
              at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
              at java.base/java.lang.Thread.run(Thread.java:833)
      2022-03-03 09:06:07,005 [] [midPointScheduler_Worker-2] ERROR (com.evolveum.midpoint.model.impl.security.GuiProfiledPrincipalManagerImpl): Error compiling user profile for GuiProfiledPrincipal(user:00000000-0000-0000-0000-000000000002(administrator), autz=[Authorization([http://midpoint.evolveum.com/xml/ns/public/security/authorization-3#all])]): Uncaught exception during scan
      io.github.classgraph.ClassGraphException: Uncaught exception during scan
              at io.github.classgraph.ClassGraph.scan(ClassGraph.java:1606)
              at io.github.classgraph.ClassGraph.scan(ClassGraph.java:1623)
              at io.github.classgraph.ClassGraph.scan(ClassGraph.java:1636)
              at com.evolveum.midpoint.util.ClassPathUtil.scanClasses(ClassPathUtil.java:48)
              at com.evolveum.midpoint.gui.api.DefaultGuiConfigurationCompiler.collectClasses(DefaultGuiConfigurationCompiler.java:330)
              at com.evolveum.midpoint.gui.api.DefaultGuiConfigurationCompiler.collectPanelInstanceClasses(DefaultGuiConfigurationCompiler.java:319)
              at com.evolveum.midpoint.gui.api.DefaultGuiConfigurationCompiler.postProcess(DefaultGuiConfigurationCompiler.java:109)
              at com.evolveum.midpoint.model.impl.security.GuiProfileCompilerRegistryImpl.invokeCompiler(GuiProfileCompilerRegistryImpl.java:23)
              at com.evolveum.midpoint.model.impl.security.GuiProfileCompiler.compileFocusProfile(GuiProfileCompiler.java:95)
              at com.evolveum.midpoint.model.impl.security.GuiProfiledPrincipalManagerImpl.initializePrincipalFromAssignments(GuiProfiledPrincipalManagerImpl.java:266)
              at com.evolveum.midpoint.model.impl.security.GuiProfiledPrincipalManagerImpl.getPrincipal(GuiProfiledPrincipalManagerImpl.java:144)
              at com.evolveum.midpoint.model.impl.security.GuiProfiledPrincipalManagerImpl.getPrincipal(GuiProfiledPrincipalManagerImpl.java:129)
              at com.evolveum.midpoint.model.impl.security.GuiProfiledPrincipalManagerImpl.getPrincipal(GuiProfiledPrincipalManagerImpl.java:68)
              at com.evolveum.midpoint.security.impl.SecurityContextManagerImpl.setupPreAuthenticatedSecurityContext(SecurityContextManagerImpl.java:118)
              at com.evolveum.midpoint.task.quartzimpl.run.JobExecutor.setupSecurityContext(JobExecutor.java:171)
              at com.evolveum.midpoint.task.quartzimpl.run.JobExecutor.executeInternal(JobExecutor.java:123)
              at com.evolveum.midpoint.task.quartzimpl.run.JobExecutor.execute(JobExecutor.java:68)
              at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
              at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:588)
      Caused by: java.lang.OutOfMemoryError: Java heap space
              at java.base/java.util.Arrays.copyOf(Arrays.java:3537)
              at nonapi.io.github.classgraph.fileslice.reader.ClassfileReader.readTo(ClassfileReader.java:196)
              at nonapi.io.github.classgraph.fileslice.reader.ClassfileReader.readInt(ClassfileReader.java:322)
              at nonapi.io.github.classgraph.fileslice.reader.ClassfileReader.readInt(ClassfileReader.java:381)
              at io.github.classgraph.Classfile.<init>(Classfile.java:1928)
              at io.github.classgraph.Scanner$ClassfileScannerWorkUnitProcessor.processWorkUnit(Scanner.java:741)
              at io.github.classgraph.Scanner$ClassfileScannerWorkUnitProcessor.processWorkUnit(Scanner.java:664)
              at nonapi.io.github.classgraph.concurrency.WorkQueue.runWorkLoop(WorkQueue.java:246)
              at nonapi.io.github.classgraph.concurrency.WorkQueue.access$000(WorkQueue.java:50)
              at nonapi.io.github.classgraph.concurrency.WorkQueue$1.call(WorkQueue.java:201)
              at nonapi.io.github.classgraph.concurrency.WorkQueue$1.call(WorkQueue.java:198)
              at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
              at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
              at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
              at java.base/java.lang.Thread.run(Thread.java:833)
      2022-03-03 09:06:07,005 [] [midPointScheduler_Worker-6] ERROR (com.evolveum.midpoint.model.impl.security.GuiProfiledPrincipalManagerImpl): Error compiling user profile for GuiProfiledPrincipal(user:00000000-0000-0000-0000-000000000002(administrator), autz=[Authorization([http://midpoint.evolveum.com/xml/ns/public/security/authorization-3#all])]): Uncaught exception during scan
      io.github.classgraph.ClassGraphException: Uncaught exception during scan
              at io.github.classgraph.ClassGraph.scan(ClassGraph.java:1606)
              at io.github.classgraph.ClassGraph.scan(ClassGraph.java:1623)
              at io.github.classgraph.ClassGraph.scan(ClassGraph.java:1636)
              at com.evolveum.midpoint.util.ClassPathUtil.scanClasses(ClassPathUtil.java:48)
              at com.evolveum.midpoint.gui.api.DefaultGuiConfigurationCompiler.collectClasses(DefaultGuiConfigurationCompiler.java:330)
              at com.evolveum.midpoint.gui.api.DefaultGuiConfigurationCompiler.collectPanelInstanceClasses(DefaultGuiConfigurationCompiler.java:319)
              at com.evolveum.midpoint.gui.api.DefaultGuiConfigurationCompiler.postProcess(DefaultGuiConfigurationCompiler.java:109)
              at com.evolveum.midpoint.model.impl.security.GuiProfileCompilerRegistryImpl.invokeCompiler(GuiProfileCompilerRegistryImpl.java:23)
              at com.evolveum.midpoint.model.impl.security.GuiProfileCompiler.compileFocusProfile(GuiProfileCompiler.java:95)
              at com.evolveum.midpoint.model.impl.security.GuiProfiledPrincipalManagerImpl.initializePrincipalFromAssignments(GuiProfiledPrincipalManagerImpl.java:266)
              at com.evolveum.midpoint.model.impl.security.GuiProfiledPrincipalManagerImpl.getPrincipal(GuiProfiledPrincipalManagerImpl.java:144)
              at com.evolveum.midpoint.model.impl.security.GuiProfiledPrincipalManagerImpl.getPrincipal(GuiProfiledPrincipalManagerImpl.java:129)
              at com.evolveum.midpoint.model.impl.security.GuiProfiledPrincipalManagerImpl.getPrincipal(GuiProfiledPrincipalManagerImpl.java:68)
              at com.evolveum.midpoint.security.impl.SecurityContextManagerImpl.setupPreAuthenticatedSecurityContext(SecurityContextManagerImpl.java:118)
              at com.evolveum.midpoint.task.quartzimpl.run.JobExecutor.setupSecurityContext(JobExecutor.java:171)
              at com.evolveum.midpoint.task.quartzimpl.run.JobExecutor.executeInternal(JobExecutor.java:123)
              at com.evolveum.midpoint.task.quartzimpl.run.JobExecutor.execute(JobExecutor.java:68)
              at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
              at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:588)
      Caused by: java.lang.OutOfMemoryError: Java heap space
      2022-03-03 09:06:07,039 [] [midPointScheduler_Worker-4] ERROR (com.evolveum.midpoint.model.impl.security.GuiProfiledPrincipalManagerImpl): Error compiling user profile for GuiProfiledPrincipal(user:00000000-0000-0000-0000-000000000002(administrator), autz=[Authorization([http://midpoint.evolveum.com/xml/ns/public/security/authorization-3#all])]): Uncaught exception during scan
      io.github.classgraph.ClassGraphException: Uncaught exception during scan
              at io.github.classgraph.ClassGraph.scan(ClassGraph.java:1606)
              at io.github.classgraph.ClassGraph.scan(ClassGraph.java:1623)
              at io.github.classgraph.ClassGraph.scan(ClassGraph.java:1636)
              at com.evolveum.midpoint.util.ClassPathUtil.scanClasses(ClassPathUtil.java:48)
              at com.evolveum.midpoint.gui.api.DefaultGuiConfigurationCompiler.collectClasses(DefaultGuiConfigurationCompiler.java:330)
              at com.evolveum.midpoint.gui.api.DefaultGuiConfigurationCompiler.collectPanelInstanceClasses(DefaultGuiConfigurationCompiler.java:319)
              at com.evolveum.midpoint.gui.api.DefaultGuiConfigurationCompiler.postProcess(DefaultGuiConfigurationCompiler.java:109)
              at com.evolveum.midpoint.model.impl.security.GuiProfileCompilerRegistryImpl.invokeCompiler(GuiProfileCompilerRegistryImpl.java:23)
              at com.evolveum.midpoint.model.impl.security.GuiProfileCompiler.compileFocusProfile(GuiProfileCompiler.java:95)
      
              at com.evolveum.midpoint.model.impl.security.GuiProfiledPrincipalManagerImpl.initializePrincipalFromAssignments(GuiProfiledPrincipalManagerImpl.java:266)
              at com.evolveum.midpoint.model.impl.security.GuiProfiledPrincipalManagerImpl.getPrincipal(GuiProfiledPrincipalManagerImpl.java:144)
              at com.evolveum.midpoint.model.impl.security.GuiProfiledPrincipalManagerImpl.getPrincipal(GuiProfiledPrincipalManagerImpl.java:129)
              at com.evolveum.midpoint.model.impl.security.GuiProfiledPrincipalManagerImpl.getPrincipal(GuiProfiledPrincipalManagerImpl.java:68)
              at com.evolveum.midpoint.security.impl.SecurityContextManagerImpl.setupPreAuthenticatedSecurityContext(SecurityContextManagerImpl.java:118)
              at com.evolveum.midpoint.task.quartzimpl.run.JobExecutor.setupSecurityContext(JobExecutor.java:171)
              at com.evolveum.midpoint.task.quartzimpl.run.JobExecutor.executeInternal(JobExecutor.java:123)
              at com.evolveum.midpoint.task.quartzimpl.run.JobExecutor.execute(JobExecutor.java:68)
              at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
              at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:588)
      Caused by: java.lang.OutOfMemoryError: Java heap space
      2022-03-03 09:06:07,705 [] [midPointScheduler_Worker-1] ERROR (com.evolveum.midpoint.model.impl.security.GuiProfiledPrincipalManagerImpl): Error compiling user profile for GuiProfiledPrincipal(user:00000000-0000-0000-0000-000000000002(administrator), autz=[Authorization([http://midpoint.evolveum.com/xml/ns/public/security/authorization-3#all])]): Uncaught exception during scan
      io.github.classgraph.ClassGraphException: Uncaught exception during scan
              at io.github.classgraph.ClassGraph.scan(ClassGraph.java:1606)
              at io.github.classgraph.ClassGraph.scan(ClassGraph.java:1623)
              at io.github.classgraph.ClassGraph.scan(ClassGraph.java:1636)
              at com.evolveum.midpoint.util.ClassPathUtil.scanClasses(ClassPathUtil.java:48)
              at com.evolveum.midpoint.gui.api.DefaultGuiConfigurationCompiler.collectClasses(DefaultGuiConfigurationCompiler.java:330)
              at com.evolveum.midpoint.gui.api.DefaultGuiConfigurationCompiler.collectPanelInstanceClasses(DefaultGuiConfigurationCompiler.java:319)
              at com.evolveum.midpoint.gui.api.DefaultGuiConfigurationCompiler.postProcess(DefaultGuiConfigurationCompiler.java:109)
              at com.evolveum.midpoint.model.impl.security.GuiProfileCompilerRegistryImpl.invokeCompiler(GuiProfileCompilerRegistryImpl.java:23)
              at com.evolveum.midpoint.model.impl.security.GuiProfileCompiler.compileFocusProfile(GuiProfileCompiler.java:95)
              at com.evolveum.midpoint.model.impl.security.GuiProfiledPrincipalManagerImpl.initializePrincipalFromAssignments(GuiProfiledPrincipalManagerImpl.java:266)
              at com.evolveum.midpoint.model.impl.security.GuiProfiledPrincipalManagerImpl.getPrincipal(GuiProfiledPrincipalManagerImpl.java:144)
              at com.evolveum.midpoint.model.impl.security.GuiProfiledPrincipalManagerImpl.getPrincipal(GuiProfiledPrincipalManagerImpl.java:129)
              at com.evolveum.midpoint.model.impl.security.GuiProfiledPrincipalManagerImpl.getPrincipal(GuiProfiledPrincipalManagerImpl.java:68)
              at com.evolveum.midpoint.security.impl.SecurityContextManagerImpl.setupPreAuthenticatedSecurityContext(SecurityContextManagerImpl.java:118)
              at com.evolveum.midpoint.task.quartzimpl.run.JobExecutor.setupSecurityContext(JobExecutor.java:171)
              at com.evolveum.midpoint.task.quartzimpl.run.JobExecutor.executeInternal(JobExecutor.java:123)
              at com.evolveum.midpoint.task.quartzimpl.run.JobExecutor.execute(JobExecutor.java:68)
              at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
              at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:588)
      Caused by: java.lang.OutOfMemoryError: Java heap space
      

      This leads to an idea that during (first?) start midPoint consumes much more memory than usual.

      There is a big delay (maybe a minute?) sice midPoint starts responding after going to login url.

        Attachments

          Activity

            People

            Assignee:
            vix Ivan Noris
            Reporter:
            vix Ivan Noris
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: