在运行时远程检测Scala / Java应用程序 [英] Remote Probing of Scala/Java Application in Runtime

查看:105
本文介绍了在运行时远程检测Scala / Java应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我觉得需要在我可以远程登录的应用程序中打开一个端口,并探索某些东西,比如特定结构的内存消耗,打印列表的内容等等。有助于在运行时间内部署解决方案。



但是突然之间,我有一种奇怪的感觉,就是已经存在这样的远程测试的通用框架。所以,这里的问题是:有没有任何图书馆已经为Scala / Java提供了这样的功能?我不是在寻找一个完全远程调试的解决方案,而是简单易用的扩展和探索。

解决方案

可以将鸵鸟嵌入您的应用程序。与标准监控工具不同,它具有轻量级和可读取的数据表示。而且您不仅可以看到系统指标,还可以看到任何可能的计算。


Recently, I felt the need of opening a port in my applications to which you can telnet in, and probe for some stuff, like memory consumption of a particular structure, print the contents of a List, etc... This greatly facilitates probing deployed solutions in runtime.

But suddenly, I had this strange feeling that a generic framework for such remote probing should already exist. So, here's the question: is there any library that already facilitates such features for Scala/Java? I'm not looking for a "full remote debugging" solution, but something minimalistic that allows easy extension and probing.

解决方案

You can embed ostrich into your application. Unlike standard monitoring tools it has light-weight and readable data representation. And you would see not only system metrics but any you could possibly calculate.

这篇关于在运行时远程检测Scala / Java应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆