[JAVA-817] PermGen memory leak. A deamon thread "CursorCleanerThread" doesn't stopped when undeploy a web application. Created: 27/Apr/13 Updated: 25/Jun/13 Resolved: 27/Apr/13 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Monitoring |
| Affects Version/s: | 2.11.1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | wpc | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows 7 with sp1 |
||
| Description |
|
a thread named "MongoCleanerXXX" still at sleep state when a web application is undeployed. The close method in Mongo try to interrupt the cleaner thread. But, that doesn't work. |
| Comments |
| Comment by Jeffrey Yemin [ 27/Apr/13 ] | |||||||||||||||||
|
It does work, because _connector.isOpen() will be false, and the loop will exit.
but you have to make sure that you call Mongo#close. |