用 Java 编写一个基于 GUI 的大型应用程序,想知道是否有任何框架可以在部署到许多最终用户后监视应用程序。有点像 Eclipse 定期发送您的使用信息等。我认为 Apple 在 iOS 上也做了这种事情。
我想知道
1. which features and resources of the application are being used the most
2. crash reports
3. cpu and memory usage
最佳答案
如果您想保持简单,您可以使用日志框架。 Logback是一个 SL4J 实现,可以使用 SMTP 发送日志(用户可以读取密码!)。
he SMTPAppender accumulates logging events in one or more fixed-size buffers and sends the contents of the appropriate buffer in an email after a user-specified event occurs. SMTP email transmission (sending) is performed asynchronously.
也可以使用Loggly .
这应该是一个好的开始。 在 Java 中收集有意义的 CPU 和内存使用信息并非易事。 SLF4J 可以帮助你一点 few classes for poor people : )
关于java - 监控已部署的java应用程序的使用情况,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10702960/