<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Yes, you are right. <br>
Increasing <code>-XX:MaxPermSize solved the issue.<br>
<br>
Thanks!<br>
<br>
Marcin<br>
<br>
<br>
</code>
<div class="moz-cite-prefix">On 06/08/14 17:02, Richer, Justin P.
wrote:<br>
</div>
<blockquote
cite="mid:1CA68B5C-CBD2-488B-93B6-A76CEE1FBCEE@mitre.org"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
PermGen space and regular memory space are separate in Java, and
Spring on Tomcat *REALLY* likes to use PermGen space with all of
its beans. You can increase the allocation as well as set up your
garbage collector to handle it differently. Here's a bit on Stack
Overflow regarding it:
<div><br>
</div>
<div><a moz-do-not-send="true"
href="http://stackoverflow.com/questions/1124131/what-can-be-done-with-permgen-out-of-space-exception-in-tomcat-spring-hibernat">http://stackoverflow.com/questions/1124131/what-can-be-done-with-permgen-out-of-space-exception-in-tomcat-spring-hibernat</a></div>
<div><br>
</div>
<div><a moz-do-not-send="true"
href="http://stackoverflow.com/questions/23890861/spring-jpa-permgen-out-of-memory">http://stackoverflow.com/questions/23890861/spring-jpa-permgen-out-of-memory</a></div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>We've got a number of sites running the OIDC server along
side the client (with simple-web-app or derivatives) or other
applications, like at
<a moz-do-not-send="true" href="https://mitreid.org/">https://mitreid.org/</a>
for example, so I know it's possible.</div>
<div><br>
</div>
<div> -- Justin</div>
<div><br>
</div>
<div><br>
<div>
<div>On Aug 6, 2014, at 10:54 AM, Marcin Krystek <<a
moz-do-not-send="true"
href="mailto:mkrystek@man.poznan.pl">mkrystek@man.poznan.pl</a>>
wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div bgcolor="#FFFFFF" text="#000000">Hello!<br>
<br>
<br>
I'm trying to build my own instance of openid connect
infrastructure based on MITREid Connect implementation.<br>
<br>
I have successfully downloaded in installed
OpenID-Connect-Java-Spring-Server (v1.1.8) and
ldap-openid-connect-server. Both works fine.
<br>
<br>
Now I'm struggling with simple-web-app. Each time I'm
trying to access this application:<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://localhost:8080/simple-web-app">http://localhost:8080/simple-web-app</a><br>
Tomcat reports the following error:<br>
<br>
<br>
Aug 06, 2014 4:28:23 PM
org.apache.jasper.compiler.TldLocationsCache tldScanJar<br>
INFO: At least one JAR was scanned for TLDs yet contained
no TLDs. Enable debug logging for this logger for a
complete list of JARs that were scanned but no TLDs were
found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.<br>
java.lang.OutOfMemoryError: PermGen space<br>
at
org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:187)<br>
at
org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:723)<br>
at
org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:383)<br>
at
org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:428)<br>
at
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:466)<br>
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:378)<br>
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)<br>
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)<br>
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:657)<br>
at
org.apache.jasper.servlet.JspServletWrapper.loadTagFile(JspServletWrapper.java:240)<br>
at
org.apache.jasper.compiler.TagFileProcessor.loadTagFile(TagFileProcessor.java:578)<br>
at
org.apache.jasper.compiler.TagFileProcessor.access$000(TagFileProcessor.java:49)<br>
at
org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(TagFileProcessor.java:655)<br>
at
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1538)<br>
at
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2377)<br>
at
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2429)<br>
at
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2435)<br>
at
org.apache.jasper.compiler.Node$Root.accept(Node.java:474)<br>
at
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2377)<br>
at
org.apache.jasper.compiler.TagFileProcessor.loadTagFiles(TagFileProcessor.java:673)<br>
at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:229)<br>
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:373)<br>
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)<br>
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)<br>
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:657)<br>
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)<br>
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)<br>
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)<br>
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)<br>
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)<br>
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)<br>
at
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)<br>
Exception in thread "http-bio-8080-exec-2"
java.lang.OutOfMemoryError: PermGen space<br>
at
java.lang.Throwable.printStackTrace(Throwable.java:721)<br>
at
java.util.logging.SimpleFormatter.format(SimpleFormatter.java:157)<br>
at
org.apache.juli.FileHandler.publish(FileHandler.java:198)<br>
at java.util.logging.Logger.log(Logger.java:616)<br>
at java.util.logging.Logger.doLog(Logger.java:641)<br>
at java.util.logging.Logger.logp(Logger.java:841)<br>
at
org.apache.juli.logging.DirectJDKLog.log(DirectJDKLog.java:185)<br>
at
org.apache.juli.logging.DirectJDKLog.error(DirectJDKLog.java:151)<br>
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:258)<br>
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)<br>
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)<br>
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)<br>
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)<br>
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)<br>
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)<br>
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)<br>
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)<br>
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)<br>
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)<br>
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)<br>
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)<br>
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)<br>
at java.lang.Thread.run(Thread.java:745)<br>
Exception in thread
"ContainerBackgroundProcessor[StandardEngine[Catalina]]"
java.lang.OutOfMemoryError: PermGen space<br>
at
java.lang.Throwable.printStackTrace(Throwable.java:721)<br>
at
java.util.logging.SimpleFormatter.format(SimpleFormatter.java:157)<br>
at
org.apache.juli.FileHandler.publish(FileHandler.java:198)<br>
at java.util.logging.Logger.log(Logger.java:616)<br>
at java.util.logging.Logger.doLog(Logger.java:641)<br>
at java.util.logging.Logger.logp(Logger.java:841)<br>
at
org.apache.juli.logging.DirectJDKLog.log(DirectJDKLog.java:185)<br>
at
org.apache.juli.logging.DirectJDKLog.error(DirectJDKLog.java:151)<br>
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1535)<br>
at java.lang.Thread.run(Thread.java:745)<br>
<br>
<br>
<br>
I'm using following java parameters: -Xms3g -Xmx3g. I
suppose that 3g should be enough to compile jsp file...
<br>
Is this a bug, or did I miss some step?<br>
<br>
I'm using default configuration available in
simple-web-app project.<br>
<br>
Regards,<br>
Marcin<br>
<br>
<br>
<br>
<br>
<br>
</div>
_______________________________________________<br>
mitreid-connect mailing list<br>
<a moz-do-not-send="true"
href="mailto:mitreid-connect@mit.edu">mitreid-connect@mit.edu</a><br>
<a class="moz-txt-link-freetext" href="http://mailman.mit.edu/mailman/listinfo/mitreid-connect">http://mailman.mit.edu/mailman/listinfo/mitreid-connect</a><br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>