<div dir="ltr">Hallo <span style="font-size:12.8px">Øivind,</span><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">I started looking at this, I noticed that a message (that's one or more device/message pairs) have been rejected by APNs. This causes a NPE.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">I have a few suggestions, would you mind resending the push, but start the WildFly server with a different system property? Can you pass the "</span>aerogear.ios.batchSize", like:</div><div>-Daerogear.ios.batchSize=2000<br></div><div><br></div><div>For example (not sure how exactly you boot WF):</div><div><span style="font-size:12.8px">./bin/standalone.sh -b 0.0.0.0 --server-config=standalone-full.xml </span>-Daerogear.ios.batchSize=2000<br></div><div><br></div><div>The "-Daerogear.ios.batchSize=2000" shrinks the size of the tokens, per batch to 2k (10k is default).</div><div><br></div><div>I am interested in if this helps.<br></div>
<div><br></div><div><span style="font-size:12.8px">BTW. to address the NPE, I have proposed a fix:</span></div><div><span style="font-size:12.8px"><a href="https://github.com/aerogear/aerogear-unifiedpush-server/pull/649">https://github.com/aerogear/aerogear-unifiedpush-server/pull/649</a></span><br></div><div><span style="font-size:12.8px"><br></span></div><div><br></div><div><span style="font-size:12.8px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 2, 2015 at 12:41 PM, Øivind Hoff Johansen <span dir="ltr"><<a href="mailto:oivind.hoff.johansen@adresseavisen.no" target="_blank">oivind.hoff.johansen@adresseavisen.no</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
we're experiencing a delay when sending push messages to iOS devices.<br>
Our biggest push application have 32690 iOS devices registered and a smaller amount of android devices.<br>
We see that the delay is up to 20 minutes from first to last on iOS everytime.<br>
<br>
We are using version 1.1.0-beta.4, and have upgraded from 1.0.2. Table ups_db_changelog have 135 rows<br>
Running wildfly 8.1.0 Final<br>
<br>
We had the same problem with 1.0.2 but then we could see the delay in the log output, now according to the logs it takes around 10 seconds. (see fine.log), we also see this in the network traffic out from the server.<br>
<br>
The only error we're seeing in the logs is on MonitoringThread-1<br>
<br>
(MonitoringThread-1) Exception in thread "MonitoringThread-1" java.lang.NullPointerException<br>
(MonitoringThread-1) at org.jboss.aerogear.unifiedpush.message.sender.APNsPushNotificationSender$2.messageSendFailed(APNsPushNotificationSender.java:232)<br>
(MonitoringThread-1) at com.notnoop.apns.internal.ApnsConnectionImpl$2.run(ApnsConnectionImpl.java:199)<br>
(MonitoringThread-1) at java.lang.Thread.run(Thread.java:745)<br>
<br>
<br>
Do you have any ideas on why this delay is happening, and how to solve it?<br>
<br>
Logs:<br>
<a href="http://static.polarismedia.no/apps/aero/fine.log" rel="noreferrer" target="_blank">http://static.polarismedia.no/apps/aero/fine.log</a><br>
<a href="http://static.polarismedia.no/apps/aero/wildfly.log" rel="noreferrer" target="_blank">http://static.polarismedia.no/apps/aero/wildfly.log</a><br>
<a href="http://static.polarismedia.no/apps/aero/serverr.log" rel="noreferrer" target="_blank">http://static.polarismedia.no/apps/aero/serverr.log</a><br>
<br>
Regards,<br>
Øivind<br>
<br>
<br>
_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Matthias Wessendorf <br><br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a></div>
</div>