sysadmin

Calling JMX MBean method from a shell script

℡╲_俬逩灬. 提交于 2019-11-26 18:16:37
Are there any libraries that would allow me to call a JMX MBean method from a shell script. We expose some operations/admin commands through JMX, and we could have our admins use JConsole, or VisualVM, but some tasks are better left to automation. In that automation we'd like to be able to call a JMX MBean method on our running server, preferably from a shell script. Dougnukem The following command line JMX utilities are available: jmxterm - seems to be the most fully featured utility. cmdline-jmxclient - used in the WebArchive project seems very bare bones (and no development since 2006 it

What are the limitations of the flask built-in web server

半世苍凉 提交于 2019-11-26 15:27:52
问题 I'm a newbie in web server administration. I've read multiple times that flask built-in web server is not designed for "production", and must be used only for tests and debug... But what if my app touchs only a thousand users who occasionnaly send data to the server ? If it works, when will I have to bother with the configuration of a more sophisticated web server ? (I am looking for approximative metrics). In a nutshell, I would love to find what the builtin web server can do (with approx

Tracking CPU and Memory usage per process

早过忘川 提交于 2019-11-26 07:54:52
问题 I suspect that one of my applications eats more CPU cycles than I want it to. The problem is - it happens in bursts, and just looking at the task manager doesn\'t help me as it shows immediate usage only. Is there a way (on Windows) to track the history of CPU & Memory usage for some process. E.g. I will start tracking \"firefox\", and after an hour or so will see a graph of its CPU & memory usage during that hour. I\'m looking for either a ready-made tool or a programmatic way to achieve

Calling JMX MBean method from a shell script

偶尔善良 提交于 2019-11-26 06:13:45
问题 Are there any libraries that would allow me to call a JMX MBean method from a shell script. We expose some operations/admin commands through JMX, and we could have our admins use JConsole, or VisualVM, but some tasks are better left to automation. In that automation we\'d like to be able to call a JMX MBean method on our running server, preferably from a shell script. 回答1: The following command line JMX utilities are available: jmxterm - seems to be the most fully featured utility. cmdline

How to use SSH to run a shell script on a remote machine?

我们两清 提交于 2019-11-25 22:21:44
问题 I have to run a shell script (windows/Linux) on a remote machine. I have SSH configured on both machine A and B. My script is on machine A which will run some of my code on a remote machine, machine B. The local and remote computers can be either Windows or Unix based system. Is there a way to run do this using plink/ssh? 回答1: If Machine A is a Windows box, you can use Plink (part of PuTTY) with the -m parameter, and it will execute the local script on the remote server. plink root@MachineB