Running out of memory??

Asked by xyz_User on 2020-01-23

Not sure why but my script simply halts (doesn't do anything) after a few hours of running it. It seems to be complaining about memory issues however it's the only thing I'm running on the laptop that has SSD and 16GB of ram..

here's a snippet of the error:

#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 268435456 bytes for Failed to commit area from 0x0000000701e00000 to 0x0000000711e00000 of length 268435456.
# Possible reasons:
# The system is out of physical RAM or swap space
# The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap
# Possible solutions:
# Reduce memory load on the system
# Increase physical memory or swap space
# Check if swap backing store is full
# Decrease Java heap size (-Xmx/-Xms)
# Decrease number of Java threads
# Decrease Java thread stack sizes (-Xss)
# Set larger code cache with -XX:ReservedCodeCacheSize=
# This output file may be truncated or incomplete.

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
xyz_User
Solved:
2020-01-24
Last query:
2020-01-24
Last reply:
2020-01-24
Manfred Hampl (m-hampl) said : #1

If this occurs "after a few hours of running", then I assume that there is some kind of memory leak.
I suspect that some part of the program allocates memory and doesn't free it any more, and does this in a loop, consuming all available memory over the course of time.
(The culprit can be both the sikuli program and your script.)

Does the system still react in that status?
Can you execute
free -m
?

xyz_User (userseven) said : #2

yeah everything works perfectly, other applications have no problems it's just sikuli (runnable jar file) that stalls

RaiMan (raimund-hocke) said : #3

What SikuliX version?
What system?
what Java?

Possible, to get your script?
If yes, send to sikulix---at---outlook---dot---com (images not needed)

If not possible, it would at least be helpful to know about the features you are using especially inside of long running loops.

xyz_User (userseven) said : #4

Thanks - SIkuli v. 1.x , java 8.x os is win10
since i'm using version lower then 2.x i wont take up your time :)
decided to just kill the script once it finishes executing and then just restart it using a batch.
Thanks