rubberbird / javapns

Automatically exported from code.google.com/p/javapns
0 stars 0 forks source link

GC overhead limit exceeded #159

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
I can't really reproduce it, but when we have to send a lot of push 
notifications several 1000's) this exception occured.

What version of the product are you using? On what operating system?
2.2

Exception in thread "JavaPNS grouped notification thread in LIST mode" 
java.lang.OutOfMemoryError: GC overhead limit exceeded
        at java.io.BufferedReader.<init>(BufferedReader.java:80)
        at java.io.BufferedReader.<init>(BufferedReader.java:91)
        at javapns.notification.PushNotificationManager.sendNotification(PushNotificationManager.java:389)
        at javapns.notification.PushNotificationManager.sendNotification(PushNotificationManager.java:350)
        at javapns.notification.transmission.NotificationThread.runList(NotificationThread.java:228)
        at javapns.notification.transmission.NotificationThread.run(NotificationThread.java:199)
        at java.lang.Thread.run(Thread.java:619)
Exception in thread "JavaPNS grouped notification thread in LIST mode" 
java.lang.OutOfMemoryError: GC overhead limit exceeded
        at java.util.Arrays.copyOfRange(Arrays.java:3209)
        at java.lang.String.<init>(String.java:215)
        at java.lang.StringBuffer.toString(StringBuffer.java:585)
        at org.json.JSONObject.toString(JSONObject.java:1304)
        at javapns.notification.Payload.toString(Payload.java:110)
        at javapns.notification.PushNotificationPayload.verifyPayloadIsNotEmpty(PushNotificationPayload.java:353)
        at javapns.notification.PushNotificationManager.sendNotification(PushNotificationManager.java:367)
        at javapns.notification.PushNotificationManager.sendNotification(PushNotificationManager.java:350)
        at javapns.notification.transmission.NotificationThread.runList(NotificationThread.java:228)
        at javapns.notification.transmission.NotificationThread.run(NotificationThread.java:199)
        at java.lang.Thread.run(Thread.java:619)
Exception in thread "JavaPNS grouped notification thread in LIST mode" 
java.lang.OutOfMemoryError: GC overhead limit exceeded
        at java.io.BufferedReader.<init>(BufferedReader.java:80)
        at java.io.BufferedReader.<init>(BufferedReader.java:91)
        at javapns.notification.PushNotificationManager.sendNotification(PushNotificationManager.java:389)
        at javapns.notification.PushNotificationManager.sendNotification(PushNotificationManager.java:350)
        at javapns.notification.transmission.NotificationThread.runList(NotificationThread.java:228)
        at javapns.notification.transmission.NotificationThread.run(NotificationThread.java:199)
        at java.lang.Thread.run(Thread.java:619)
Exception in thread "JavaPNS grouped notification thread in LIST mode" 
java.lang.OutOfMemoryError: GC overhead limit exceeded
        at java.io.BufferedReader.<init>(BufferedReader.java:80)
        at java.io.BufferedReader.<init>(BufferedReader.java:91)
        at javapns.notification.PushNotificationManager.sendNotification(PushNotificationManager.java:389)
        at javapns.notification.PushNotificationManager.sendNotification(PushNotificationManager.java:350)
        at javapns.notification.transmission.NotificationThread.runList(NotificationThread.java:228)
        at javapns.notification.transmission.NotificationThread.run(NotificationThread.java:199)
        at java.lang.Thread.run(Thread.java:619)

Original issue reported on code.google.com by stemp...@puzzle.ch on 10 Dec 2012 at 12:41

GoogleCodeExporter commented 8 years ago
Did somebody already take a look at this issue?  Will a new version be released 
soon?

Original comment by stemp...@puzzle.ch on 30 Jan 2013 at 7:12

GoogleCodeExporter commented 8 years ago
Hi all,

I had that exception too:

Servlet execution threw an exception, root cause: java.lang.OutOfMemoryError: 
GC overhead limit exceeded

I was doing some incremental tests, 200 push, 2000 and 20000, with 10, 20 and 
30 threads

First time of 20000 tokens and 30 threads I had that exception

thanks in advance and best regards

Original comment by r.gambe...@gmail.com on 20 Jun 2013 at 10:21