membrane / api-gateway

API gateway for REST, OpenAPI, GraphQL and SOAP written in Java.
https://membrane-api.io
Apache License 2.0
456 stars 137 forks source link

OutOfMemory in Tests #538

Open koin612 opened 1 year ago

koin612 commented 1 year ago

Seems not always to be the case. Running mvn install in root.

[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.216 s - in com.predic8.membrane.core.rules.ProxySSLTest
[INFO] Running com.predic8.membrane.integration.SessionManager
[ERROR] unable to create native thread: possibly out of memory or process/resource limits reached
Exception in thread "main" java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reached
        at java.base/java.lang.Thread.start0(Native Method)
        at java.base/java.lang.Thread.start(Thread.java:802)
        at java.base/java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:945)
        at java.base/java.util.concurrent.ThreadPoolExecutor.ensurePrestart(ThreadPoolExecutor.java:1593)
        at java.base/java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(ScheduledThreadPoolExecutor.java:346)
        at java.base/java.util.concurrent.ScheduledThreadPoolExecutor.schedule(ScheduledThreadPoolExecutor.java:562)
        at org.apache.maven.surefire.booter.ForkedBooter.launchLastDitchDaemonShutdownThread(ForkedBooter.java:481)
        at org.apache.maven.surefire.booter.ForkedBooter.exit1(ForkedBooter.java:425)
        at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:605)
        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:581)
rrayst commented 1 year ago

mac issue? @predic8

building on Github works https://github.com/membrane/service-proxy/actions/runs/5057045330 (though that does not run all the tests to stay within the time limit)

koin612 commented 1 year ago

I've build it on OSX already today and it worked, having github actions take a long time, I've tried to build it again locally and got this multiple times

koin612 commented 1 year ago

Possible that this is triggered by the changes in azuretablestorage branch, will check

bridgerdier commented 1 year ago

OOM also occurs on Github during Ubuntu build: Screenshot_20230525_215832

t-burch commented 10 months ago

This seems to be fixed right? @koin612

koin612 commented 10 months ago

This seems to be fixed right? @koin612

I don't think so. Did not touch it and experienced OOM in Github and local builds.