mwkirk / javapns

Test import of svn javapns repo from Google Code
3 stars 0 forks source link

Memory leak in Push Notifications #172

Open dsreddy2384 opened 11 years ago

dsreddy2384 commented 11 years ago

I am facing issue with OutOfMemory Situation when sending lot of Push Notifications, found that pushedNotification LinkedHashMap in PushNotificationManager is causing this. private LinkedHashMap<Integer, PushedNotification> pushedNotifications = new LinkedHashMap<Integer, PushedNotification>();

This variable is cleared only when there is a failed notification, there is no method to access this variable and it never gets cleared. The same issue is also mentioned here http://code.google.com/p/javapns/issues/detail?id=120 Did anyone face this issue? how did you resolve ?