mappcenter / javapns

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

Stop a batch on the run. #185

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.A batch was run with 10 Threads.
2.
3.

What is the expected output? What do you see instead?
I expect to close the batch, but not finished

What version of the product are you using? On what operating system?
JavaPNS2.2

Please provide any additional information below.
the 2.2APNS have still bean occurring on my system.
Like this below.
--------------------------------------------------------
Deadlock Detection:

No deadlocks found.

none
null_check
null_assert
range_check
class_check
array_check
intrinsic
bimorphic
unloaded
uninitialized
unreached
unhandled
constraint
div0_check
age
predicate
loop_limit_check
Thread 22448: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - java.util.TimerThread.mainLoop() @bci=201, line=552 (Interpreted frame)
 - java.util.TimerThread.run() @bci=1, line=505 (Interpreted frame)

Locked ownable synchronizers:
    - None

Thread 22440: (state = BLOCKED)

Locked ownable synchronizers:
    - None

Thread 22439: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - java.lang.ref.ReferenceQueue.remove(long) @bci=44, line=135 (Interpreted frame)
 - java.lang.ref.ReferenceQueue.remove() @bci=2, line=151 (Interpreted frame)
 - java.lang.ref.Finalizer$FinalizerThread.run() @bci=3, line=177 (Interpreted frame)

Locked ownable synchronizers:
    - None

Thread 22438: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - java.lang.Object.wait() @bci=2, line=503 (Interpreted frame)
 - java.lang.ref.Reference$ReferenceHandler.run() @bci=46, line=133 (Interpreted frame)

Locked ownable synchronizers:
    - None

Thread 22432: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - java.lang.Object.wait() @bci=2, line=503 (Interpreted frame)
 - javapns.notification.transmission.NotificationThreads.waitForAllThreads() @bci=11, line=351 (Interpreted frame)
 - javapns.notification.transmission.NotificationThreads.waitForAllThreads(boolean) @bci=1, line=370 (Interpreted frame)
 - javapns.Push.payload(javapns.notification.Payload, java.lang.Object, java.lang.String, boolean, int, java.lang.Object) @bci=59, line=212 (Interpreted frame)
 - jp.ameba.sg2.apns.core.service.impl.ApnsServiceImpl.sendMessage(java.lang.String[], java.lang.String, java.util.Map, int, jp.ameba.sg2.apns.core.bean.model.ApnsGameModel, boolean) @bci=63, line=303 (Interpreted frame)
 - jp.ameba.sg2.apns.batch.service.impl.BatchServiceImpl.sendMessage(java.lang.String[], java.lang.String, java.util.Map, int, jp.ameba.sg2.apns.core.bean.model.ApnsGameModel, java.lang.String, boolean) @bci=13, line=71 (Compiled frame)
 - jp.ameba.sg2.apns.batch.service.impl.BatchServiceImpl.sendMessageAsList(java.lang.String, java.lang.String, java.util.Map, int, java.lang.String, boolean) @bci=184, line=158 (Interpreted frame)
 - jp.ameba.sg2.apns.batch.main.BatchMain.main(java.lang.String[]) @bci=369, line=78 (Interpreted frame)

Locked ownable synchronizers:
    - None
--------------------------------------------------------------------------------
-----

Original issue reported on code.google.com by minzia...@gmail.com on 14 May 2013 at 1:56

GoogleCodeExporter commented 9 years ago
Could you please provide the code that uses JavaPNS?  Thank you!

Original comment by sype...@gmail.com on 23 May 2013 at 7:48

GoogleCodeExporter commented 9 years ago
Hi there

It seems like that I resolved this problem.
That cause was memory lick to be out Null logs.
I removed the Null logs and I adjusted memory tuning.
I use thread from 10 to 30 and a list are 500, leave the memory tuning.
--------------------------------------------------------------------
JAVA_BIN=${JAVA_HOME}/bin/java
OPTS="-server -Xms516m -Xmx516m -Xmn256m "
OPTS="${OPTS} -XX:SurvivorRatio=8 -XX:PermSize=128m -XX:MaxPermSize=256m "
OPTS="${OPTS} -classpath ${CLASSPATH} "
OPTS="${OPTS} -XX:+PrintGCDetails -Xloggc:/usr/local/app/batch/temp/gc.log"
--------------------------------------------------------------------

Original comment by minzia...@gmail.com on 3 Jun 2013 at 2:02

GoogleCodeExporter commented 9 years ago
Closing since poster indicated the issue was fixed locally.

Original comment by sype...@gmail.com on 10 Jul 2013 at 9:32