[
https://issues.apache.org/jira/browse/IGNITE-10858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
renx updated IGNITE-10858:
--------------------------
Description:
I integrate IgniteClient into J2EE. In the HTTP-Request thread calls Ignite
Service which the parameter's serialization is larger (about 100MB). By
observing JVM console, I find that the memory occupancy is very bad. Through
JVM dump, I find that ThreadLocal causes
OptimizedObjectStreamRegistry.StreamHolder memory leak, which can be solved by
the following modifications.
org.apache.ignite.internal.util.io.GridUnsafeDataOutput#reset:
{code:java}
public void reset(){
off = 0;
out = null;
// clear data
this.bytes = new byte[0];
this.maxOff = 0;
this.lastCheck = U.currentTimeMillis();
}
{code}
was:
I integrate IgniteClient into J2EE. In the HTTP-Request thread calls Ignite
Service which the parameter's serialization is larger (about 100MB). By
observing JVM console, I find that the memory occupancy is very bad. Through
JVM dump, I find that ThreadLocal causes
OptimizedObjectStreamRegistry.StreamHolder memory leak, which can be solved by
the following modifications.
org.apache.ignite.internal.util.io.GridUnsafeDataOutput#reset:
{code:java}
public void reset(){
off = 0;
out = null;
// clear data
this.bytes = new byte[0];
this.maxOff = 0;
this.lastCheck = U.currentTimeMillis();
}
{code}
> Memory can not be timely recovery when executing the ignite service with
> thread pool
> -------------------------------------------------------------------------------------
>
> Key: IGNITE-10858
> URL: https://issues.apache.org/jira/browse/IGNITE-10858
> Project: Ignite
> Issue Type: Bug
> Components: binary
> Affects Versions: 2.7
> Reporter: renx
> Priority: Major
> Fix For: 2.8
>
> Original Estimate: 0.5h
> Remaining Estimate: 0.5h
>
> I integrate IgniteClient into J2EE. In the HTTP-Request thread calls Ignite
> Service which the parameter's serialization is larger (about 100MB). By
> observing JVM console, I find that the memory occupancy is very bad. Through
> JVM dump, I find that ThreadLocal causes
> OptimizedObjectStreamRegistry.StreamHolder memory leak, which can be solved
> by the following modifications.
> org.apache.ignite.internal.util.io.GridUnsafeDataOutput#reset:
> {code:java}
> public void reset(){
> off = 0;
> out = null;
> // clear data
> this.bytes = new byte[0];
> this.maxOff = 0;
> this.lastCheck = U.currentTimeMillis();
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)