-
Notifications
You must be signed in to change notification settings - Fork 695
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
Cooja OutOfMemory Error #2834
Comments
Are your simulation timeline keeps moment of start, when crush?
As i remember messages-list, and timeline have limit of events amount. Is
that limit has bounded?
вс, 7 янв. 2024 г. в 08:09, Arshdeep Singh ***@***.***>:
… Dear Contiki-NG Developers,
I've encountered an issue while attempting to create a larger network in
Cooja. After a while, it consistently throws an OutOfMemory error in Java.
Is there a possibility of a memory leak within Cooja causing this problem?
Exception in thread "sim" java.lang.OutOfMemoryError: Java heap space
at java.base/java.util.Arrays.copyOf(Arrays.java:3482)
at java.base/java.util.ArrayList.grow(ArrayList.java:237)
at java.base/java.util.ArrayList.grow(ArrayList.java:244)
at java.base/java.util.ArrayList.add(ArrayList.java:483)
at java.base/java.util.ArrayList.add(ArrayList.java:496)
at org.contikios.cooja.plugins.TimeLine$MoteEvents.addRadioRXTX(TimeLine.java:2051)
at org.contikios.cooja.plugins.TimeLine$14.accept(TimeLine.java:929)
at org.contikios.cooja.plugins.TimeLine$14.accept(TimeLine.java:864)
at org.contikios.cooja.util.EventTriggers.trigger(EventTriggers.java:111)
at org.contikios.cooja.contikimote.interfaces.ContikiRadio.signalReceptionEnd(ContikiRadio.java:218)
at org.contikios.cooja.radiomediums.AbstractRadioMedium.lambda$new$0(AbstractRadioMedium.java:190)
at org.contikios.cooja.radiomediums.AbstractRadioMedium$$Lambda/0x00007f44b9f1cde0.accept(Unknown Source)
at org.contikios.cooja.util.EventTriggers.trigger(EventTriggers.java:111)
at org.contikios.cooja.contikimote.interfaces.ContikiRadio.doActionsAfterTick(ContikiRadio.java:340)
at org.contikios.cooja.contikimote.ContikiMote.execute(ContikiMote.java:131)
at org.contikios.cooja.motes.AbstractWakeupMote$1.execute(AbstractWakeupMote.java:67)
at org.contikios.cooja.Simulation.lambda$new$0(Simulation.java:226)
at org.contikios.cooja.Simulation$$Lambda/0x00007f44b9f20af8.run(Unknown Source)
at java.base/java.lang.Thread.runWith(Thread.java:1596)
at java.base/java.lang.Thread.run(Thread.java:1583)
—
Reply to this email directly, view it on GitHub
<#2834>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADMJ77DNAAT5XWIWQPYHZ5TYNIUWZAVCNFSM6AAAAABBQBZDP6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGA3DQOJYHAYDQOI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Hello, I am sorry I am new to Cooja, I am not sure I understand it. Can you please explain it a bit more. Thanks |
@ArshdeepSingh18 is this a long running simulation? You can try to give the JVM a larger heap, change the |
@pjonsson Thanks for the update. Yes, My experiment requires from 42 nodes to 64 nodes, all I did change the Xms to |
Did the simulation run longer when you increased the size, or does it crash just as quickly as before? |
@ArshdeepSingh18 based on what you have written, my guess is that Cooja is holding on to a lot of memory for a long time, and then the heap gets full and Cooja crashes. This is obviously not desirable behavior, but I'm not sure how to fix it; if we drop some of the data the timeline will not be complete. |
As i remember, timeline have a limit of events, similar that for mote
messages list.
That limit surely works on old cooja - 2years ago. Maybe that has broken
since later rework.
ср, 10 янв. 2024 г., 13:53 Peter A. Jonsson ***@***.***>:
… @ArshdeepSingh18 <https://github.com/ArshdeepSingh18> based on what you
have written, my guess is that Cooja is holding on to a lot of memory for a
long time, and then the heap gets full and Cooja crashes.
This is obviously not desirable behavior, but I'm not sure how to fix it;
if we drop some of the data the timeline will not be complete.
—
Reply to this email directly, view it on GitHub
<#2834 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADMJ77HBZOTNHHSI3SZRMTDYNZXKXAVCNFSM6AAAAABBQBZDP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBUGYYTQMJZGE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@pjonsson Sorry for the late reply, I completely understand that, do you think there can be a way around it? |
Dear Contiki-NG Developers,
I've encountered an issue while attempting to create a larger network in Cooja. After a while, it consistently throws an OutOfMemory error in Java. Is there a possibility of a memory leak within Cooja causing this problem?
Best Regards,
Arshdeep Singh
The text was updated successfully, but these errors were encountered: