简体   繁体   English

监视已部署的Java应用程序

[英]Monitoring deployed java application usage

Writing a large GUI based application in Java and was wondering if there were any frameworks for monitoring an application once deployed to many end users. 用Java编写一个基于GUI的大型应用程序,并想知道是否有任何框架用于监视应用程序,一旦部署到许多最终用户。 Sort of like when Eclipse periodically send your usage information etc. Apple does this sort of thing on iOS also I think. 有点像Eclipse定期发送您的使用信息等。我认为Apple也会在iOS上做这类事情。

I want to be able to know 我希望能够知道

1. which features and resources of the application are being used the most 
2. crash reports 
3. cpu and memory usage

If you want to keep it simple you can use a logging framework. 如果您想保持简单,可以使用日志框架。 Logback is a SL4J implementation that can send your logs using SMTP (password can be read by users!). 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. SMTPAppender在一个或多个固定大小的缓冲区中累积日志记录事件,并在用户指定的事件发生后在电子邮件中发送相应缓冲区的内容。 SMTP email transmission (sending) is performed asynchronously. SMTP电子邮件传输(发送)是异步执行的。

It can also use Loggly . 它也可以使用Loggly

It should be a good start. 这应该是一个好的开始。 Gathering meaningful CPU and memory usage info in Java is not trivial. 在Java中收集有意义的CPU和内存使用信息并非易事。 SLF4J can help you out a little bit with few classes for poor people : ) SLF4J可以帮助你为穷人提供一些课程 :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM