You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Yaduvendra Singh (JIRA)" <ji...@apache.org> on 2010/03/04 21:37:27 UTC

[jira] Commented: (HTTPCLIENT-922) java.lang.OutOfMemoryError: PermGen space - while instantiating MultipartEntity it goes out of memory in JVM's permanent generation memory segment

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12841503#action_12841503 ] 

Yaduvendra Singh commented on HTTPCLIENT-922:
---------------------------------------------

Thanks for having a look!

I explored and found problem is with org.apache.james.mime4j.util.CharsetUtil of mime4j jar. It tries to load all available charset classes present under JVM.

I know memory for Perm Gen can be increased but there would be limit. I have increased it and would be doing a round of load testing. If it still consumes whole allocated space I would be putting some fix on CharsetUtil.

Stack trace for reference:
-----------------------------------------
java.lang.OutOfMemoryError: PermGen space
        at sun.nio.cs.ext.IBM970$Encoder.<clinit>(IBM970.java:2688)
        at sun.nio.cs.ext.IBM970.newEncoder(IBM970.java:45)
        at java.lang.StringCoding$StringEncoder.<init>(StringCoding.java:215)
        at java.lang.StringCoding$StringEncoder.<init>(StringCoding.java:207)
        at java.lang.StringCoding.encode(StringCoding.java:266)
        at java.lang.String.getBytes(String.java:947)
        at org.apache.james.mime4j.util.CharsetUtil.<clinit>(CharsetUtil.java:1028)
        at org.apache.http.entity.mime.MIME.<clinit>(MIME.java:51)
        at org.apache.http.entity.mime.HttpMultipart.<clinit>(HttpMultipart.java:85)
        at org.apache.http.entity.mime.MultipartEntity.<init>(MultipartEntity.java:78)
        at org.apache.http.entity.mime.MultipartEntity.<init>(MultipartEntity.java:101)



> java.lang.OutOfMemoryError: PermGen space  - while instantiating MultipartEntity it goes out of memory in JVM's permanent generation memory segment
> ---------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-922
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-922
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpMime
>    Affects Versions: 4.1 Alpha1
>         Environment: OS: Solaris
> Server: SunOne 7
>            Reporter: Yaduvendra Singh
>            Priority: Minor
>
> java.lang.OutOfMemoryError: PermGen space  - while instantiating MultipartEntity it goes out of memory in JVM's permanent generation memory segment. 
> The behavior is intermittent and reported in production server.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org