Troubleshooting PMF Analytics
Overview
Find information to help resolve issues that you might encounter when you use the Persistent Mobile Foundation Analytics.
There is no data in the analytics console
Check the following possibilities.
- Verify that your apps are set to point to the PMF, which forwards the logs to the PMF Analytics Server. Ensure that the following values are set in the
mfpclient.plist
(iOS),mfpclient.properties
(Android), orconfig.xml
(Cordova) files. - Ensure that your PMF is pointing to your PMF Analytics Server.
- Check that you are calling the send method.
- iOS:
- Objective-C:
[[WLAnalytics sharedInstance] send];
- Swift:
WLAnalytics.sharedInstance().send()
- Android:
WLAnalytics.send();
- Cordova:
WL.Analytics.send();
- Web:
ibmmfpfanalytics.send();
- Objective-C:
- iOS:
Why is there crash data in the Crash Overview table, but nothing in the Crash Summary table?
The crash logs must be sent to the server once the app is again running. Verify that your apps are sending logs after a crash. To be safe, send logs on app start-up to ensure that any previously unsent information is reported.
Why is there no data in the Server Usage Flow graph or the Network Request graph?
Configure your apps to collect analytics on the Network device event.
- For cross-platform apps that use Cordova, follow the iOS or Android guides, as the configurations are the same as for native apps.
- To enable the capture of network analytic data in iOS, add the following code in your Application Delegate
application:didFinishLaunchingWithOptions
method.
Objective-C Swift - To enable the capture of network analytic data in Android, add the following code in your Application subclass
onCreate
method.
Java
Why is there no data for app sessions?
Configure your apps to collect analytics using the Lifecycle device event listener.
- For cross-platform apps that use Cordova, follow the iOS or Android guides, as the configurations are the same as for native apps.
- To enable the capture of network analytic data in iOS, add the following code in your Application Delegate
application:didFinishLaunchingWithOptions
method.
Objective-C Swift - To enable the capture of network analytic data in Android, add the following code in your Application subclass
onCreate
method.
Java
Analytics console becomes non-responsive when multiple users are accessing the console.
If PMF Analytics is deployed on WebSphere Liberty versions prior to 8.5.5.6 and if multiple users are accessing the console, the console freezes or stops responding to any further user requests.
- This situation occurs because WebSphere Liberty runs out of
Executor
threads to service the requests. This leads to a dead lock situation. - The default number of Liberty core threads is the number of hardware threads.
- To resolve this issue, configure the number of threads in the Liberty executor threads parameter to a value greater than the default.
Add the following configuration to Liberty'sserver.xml
:
- These tuning settings are generally not required in case of Websphere Liberty 8.5.5.6.
Additional references
- Best Practices for setting up Mobile Foundation Analytics production Cluster
- Frequently asked questions related to PMF Analytics Server
Last modified on