← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #227366]: java.lang.OutOfMemoryError: Java heap space-Eclipse

 

Question #227366 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/227366

    Status: Answered => Open

Bindu is still having a problem:
Hi Raiman,

I am using Sikuli-Script r930, I misprinted earlier. I used Memory
Analyzer Tool to find the leakage it says that maximum Retained heap is
for  java.awt.image.BufferedImage.<init>(Unknown Source) of 56 instances
(probably I used S.exist() or Region.exists() for those many time in the
current execution). Please find the exact detail below:

56 instances of "java.awt.image.BufferedImage", loaded by "<system class loader>" occupy 235,016,320 (90.59%) bytes. 
Biggest instances:
•	java.awt.image.BufferedImage @ 0x10420948 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x10822350 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x10c23d58 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x11025760 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x11427168 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x11828b70 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x11c2a578 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1202bf80 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1242d988 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1282f390 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x12c30d98 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x130327a0 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x134362b8 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x13839040 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x13c3aa48 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1403c6e0 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1443e350 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x15d0afd8 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1610cd38 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1650e788 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1690f248 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x16d30558 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1798b738 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x17d8eee0 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x181908e8 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x185922f0 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x185937e8 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x18d95a18 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x19197420 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x19999938 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1999a7e8 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x19d9c238 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1a19dc60 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1a1a0c08 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1a5a2198 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1ada5a10 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1ada6908 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1b1a7968 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1b6add38 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1baaf440 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1beb04d8 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1c6b3fd8 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1c6b4258 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1ceb8730 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1cebb508 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1d2bd060 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1dac1ec8 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1dec2ec8 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1dec5b30 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1e2c9458 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1e6ccfe0 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1eacdf10 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1eed0860 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1f2d2268 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1fad4480 - 4,196,720 (1.62%) bytes. 
•	java.awt.image.BufferedImage @ 0x1fed7c58 - 4,196,720 (1.62%) bytes. 
These instances are referenced from one instance of "java.util.HashMap$Entry[]", loaded by "<system class loader>"

Keywords
java.util.HashMap$Entry[]
java.awt.image.BufferedImage

Can you please help me on how to resolve this issue. Also, in the above
comment #1 "Be sure to not block any Sikuli objects (Regions, Matches,
...) from being eligible for garbage collection by permanent
assignments." . Can you please give me an example of permanent
assignments.

Thanks,
Bindu

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.