Issue 923 in google-api-java-client: Gmail Api Potential memory leak in com.google.api.client.util.escape.Platform

22 views
Skip to first unread message

google-api-...@googlecode.com

unread,
Dec 17, 2014, 3:53:43 PM12/17/14
to google-api-jav...@googlegroups.com
Status: New
Owner: wonder...@google.com
Labels: Type-Defect Priority-Medium

New issue 923 by cmayn...@gmail.com: Gmail Api Potential memory leak in
com.google.api.client.util.escape.Platform
https://code.google.com/p/google-api-java-client/issues/detail?id=923

Version of google-api-java-client (e.g. 1.15.0-rc)?
From my pom, I updated to the latest version but found it initially in
earlier versions.
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-gmail</artifactId>
<version>v1-rev18-1.19.0</version>
</dependency>


Java environment (e.g. Java 6, Android 2.3, App Engine)?
Java 7, Tomcat 7, Spring MVC


Describe the problem.
Tomcat is reporting a memory leak on shutdown:
SEVERE: The web application [/#####] created a ThreadLocal with key of type
[com.google.api.client.util.escape.Platform$1] (value
[com.google.api.client.util.escape.Platform$1@6daa869b]) and a value of
type [char[]] (value [[C@566b625c]) but failed to remove it when the web
application was stopped. Threads are going to be renewed over time to try
and avoid a probable memory leak.


How would you expect it to be fixed?
I would like the ThreadLocal created in
com.google.api.client.util.escape.Platform to be properly disposed of. This
was reported as fixed in the GSON library.
https://code.google.com/p/google-gson/issues/detail?id=402
But it appears to have crept back in somehow.



--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

google-api-...@googlecode.com

unread,
Dec 30, 2014, 3:33:44 PM12/30/14
to google-api-jav...@googlegroups.com
Updates:
Status: Moved

Comment #1 on issue 923 by wonder...@google.com: Gmail Api Potential memory
leak in com.google.api.client.util.escape.Platform
https://code.google.com/p/google-api-java-client/issues/detail?id=923

Moved to: Issue google-http-java-client:274
Reply all
Reply to author
Forward
0 new messages