Your Java heap size might be set too high 异常

发现错误,jetty异常关闭了

Exception in thread "qtp250539311-27" java.lang.OutOfMemoryError: Cannot allocate memory in tsStartJavaThread (lifecycle.c:1096).
Java heap 1G reserved, 1G committed
Paged memory=1893696K/2G.
Your Java heap size might be set too high.
Try to reduce the Java heap size using -Xmx:<size> (e.g. "-Xmx128m").
        at java.lang.Thread.start0(Native Method)
        at java.lang.Thread.start(Thread.java:640)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.startThread(QueuedThreadPool.java:431)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.dispatch(QueuedThreadPool.java:357)
        at org.eclipse.jetty.server.nio.SelectChannelConnector$ConnectorSelectorManager.dispatch(SelectChannelConnector.java:352)
        at org.eclipse.jetty.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:597)
        at org.eclipse.jetty.io.nio.SelectorManager.doSelect(SelectorManager.java:225)
        at org.eclipse.jetty.server.nio.SelectChannelConnector$1.run(SelectChannelConnector.java:266)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:528)
        at java.lang.Thread.run(Thread.java:662)
Exception in thread "qtp250539311-59"
先把-Xmx设置的参数删掉了,看看效果

你可能感兴趣的:(Your Java heap size might be set too high 异常)