Skip to content
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

Java out of heap space #2

Open
Aran30 opened this issue May 11, 2021 · 4 comments
Open

Java out of heap space #2

Aran30 opened this issue May 11, 2021 · 4 comments

Comments

@Aran30
Copy link

Aran30 commented May 11, 2021

After a while, the error "Java out of heap space" pops up in mobsos-success-modeling.

Came up while the service was trying to communicate with the file service (maybe with the file service not being reachable, mobsos-success-modeling stores the files, which creates overhead?).

@lakhoune
Copy link
Member

Here is a log of the first occurrence of the exception:

Exception in thread "Thread-7448" java.lang.OutOfMemoryError: Java heap space
 --> sending Message -773073076060259125
Monitoring: message -773073076060259125 send!
Error while announcing deployment: i5.las2peer.registry.exceptions.EthereumException: Failed to submit service deployment announcement (DEBUG: MonitoringDataProvisionService, java.lang.RuntimeException: Error processing transaction request: insufficient funds for gas * price + value)

@lakhoune
Copy link
Member

@Aran30 did you still encounter this issue?

@Aran30
Copy link
Author

Aran30 commented Jun 22, 2021

@Aran30 did you still encounter this issue?

Well I didn't particularly work on this issue or the mobsos issues in general since you've moved the deployments to the dev network. So no, I did not encounter it anymore, but there was nothing that could have triggered it in the main network I think.

@AlexanderNeumann
Copy link
Member

AlexanderNeumann commented Jun 28, 2021

Still present in our main network:

Exception in thread "RxCachedThreadScheduler-2" io.reactivex.exceptions.UndeliverableException: The exception could not be delivered to the consumer because it has already canceled/disposed the flow or the exception has nowhere to go to begin with. Further reading: https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0#error-handling | unable to create native thread: possibly out of memory or process/resource limits reached
	at io.reactivex.plugins.RxJavaPlugins.onError(RxJavaPlugins.java:367)
	at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:69)
	at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
	at java.base/java.lang.Thread.run(Thread.java:832)
Caused by: 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:801)
	at java.base/java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:939)
	at java.base/java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1356)
	at java.base/java.util.concurrent.CompletableFuture.asyncRunStage(CompletableFuture.java:1814)
	at java.base/java.util.concurrent.CompletableFuture.runAsync(CompletableFuture.java:2023)
	at org.web3j.utils.Async.run(Async.java:33)
	at org.web3j.protocol.Service.sendAsync(Service.java:54)
	at org.web3j.protocol.core.Request.sendAsync(Request.java:85)
	at i5.las2peer.registry.Contracts.getBlockTimestamp(Contracts.java:91)
	at i5.las2peer.registry.BlockchainObserver.lambda$observeETHTransactions$1(BlockchainObserver.java:197)
	at io.reactivex.internal.subscribers.LambdaSubscriber.onNext(LambdaSubscriber.java:65)
	at io.reactivex.internal.operators.flowable.FlowableSubscribeOn$SubscribeOnSubscriber.onNext(FlowableSubscribeOn.java:97)
	at io.reactivex.internal.operators.flowable.FlowableObserveOn$ObserveOnSubscriber.runAsync(FlowableObserveOn.java:407)
	at io.reactivex.internal.operators.flowable.FlowableObserveOn$BaseObserveOnSubscriber.run(FlowableObserveOn.java:176)
	at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66)

but here it seems to be an error with the blockchain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

3 participants