Letractively / noweco

Automatically exported from code.google.com/p/noweco
0 stars 0 forks source link

OutOfMemoryError #21

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Download 1.2.2 version for windows 
2.launch
Cause: Default heap space is unsuficient.
fix: Provide flexible way for setting this value via configuration file for 
example.

Result:
Exception in thread "pool-1-thread-1" java.lang.OutOfMemoryError: Java heap 
space
        at java.util.Arrays.copyOf(Unknown Source)
        at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source)
        at java.lang.AbstractStringBuilder.append(Unknown Source)
        at java.lang.StringBuilder.append(Unknown Source)
        at com.googlecode.noweco.webmail.lotus.LotusMessage.fetch(LotusMessage.j
ava:92)
        at com.googlecode.noweco.webmail.lotus.LotusMessage.getContent(LotusMess
age.java:109)
        at com.googlecode.noweco.webmail.cache.CachedMessage.fill(CachedMessage.
java:69)
        at com.googlecode.noweco.webmail.cache.CachedMessage.getSize(CachedMessa
ge.java:90)
        at com.googlecode.noweco.core.WebmailMessage.getSize(WebmailMessage.java
:45)
        at com.googlecode.noweco.pop.Pop3Connection.run(Pop3Connection.java:161)

        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Exception in thread "pool-1-thread-2" java.lang.OutOfMemoryError: Java heap spac
e
        at java.util.Arrays.copyOf(Unknown Source)
        at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source)
        at java.lang.AbstractStringBuilder.append(Unknown Source)
        at java.lang.StringBuilder.append(Unknown Source)
        at com.googlecode.noweco.webmail.lotus.LotusMessage.fetch(LotusMessage.j
ava:92)
        at com.googlecode.noweco.webmail.lotus.LotusMessage.getContent(LotusMess
age.java:109)
        at com.googlecode.noweco.webmail.cache.CachedMessage.fill(CachedMessage.
java:69)
        at com.googlecode.noweco.webmail.cache.CachedMessage.getSize(CachedMessa
ge.java:90)
        at com.googlecode.noweco.core.WebmailMessage.getSize(WebmailMessage.java
:45)
        at com.googlecode.noweco.pop.Pop3Connection.run(Pop3Connection.java:161)

        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

Original issue reported on code.google.com by stephane...@gmail.com on 9 Jun 2011 at 9:50

GoogleCodeExporter commented 8 years ago
After the 1st successful mail check, we could add a timeout (eg 2 secondes) to 
resend the previous successful answer (instead of the calculating current).

Original comment by gael.lal...@gmail.com on 14 Jun 2011 at 12:05