How to disable MongoDB usage in N4V for Webi and troubleshoot stability issues

Anonymised summary of support ticket #542267 (2023-03-27)

Symptom

MongoDB installation fails during N4V setup, leading to potential instability in SAP BusinessObjects Web Intelligence (Webi) environment. Users experience random system freezes, delayed responses, or complete unavailability of the interface (CMC, BI launchpad). Errors in Tomcat logs and Event Viewer may appear, including Java assertions and SAPJVM errors.

Environment

SAP BusinessObjects Web Intelligence (Webi) with N4V extensions installed. Environment includes Tomcat server, Windows Server 2019, and SAP BusinessObjects BI platform. N4V services running via PM2.

Resolution

  1. Disable MongoDB usage in N4V configuration by setting 'Use_MongoDB' to false in the config.js file located in the N4V nodejs module directory.
  2. Stop all N4V services using PM2 commands: 'pm2 stop all', 'pm2 kill'.
  3. Restart N4V services with 'pm2 start all'.
  4. If instability persists, check Tomcat memory settings (MaxMetaspaceSize) and adjust initial and maximum heap sizes to 8192M.
  5. Enable N4V cluster mode to distribute workload across multiple CPU cores by replacing the mono configuration file with the cluster configuration file and restarting services.
  6. Verify Tomcat port configurations in server.xml to rule out port conflicts.
  7. Test direct access to BI launchpad from the server to isolate frontend issues.

Other resolution

MongoDB is used by N4V only for logging and geo-localization storage. Disabling it forces logs to flat files and sends geo-localization requests to Google Maps API on demand. Cluster mode in N4V allows multi-CPU processing to improve performance under heavy load. Note: Webi processes may continue running even after a report is closed, which can block N4V services until completion.