I am looking for a JMX client that can invoke an mbean operation from a batch file. Actually a cron job should invoke an operation via JMX in Weblogic server.
Unfortunately VisualVM does not work in batch mode (or does it?).
So, what do you use as JmX batch client?
Has anybody tried http://wiki.cyclopsgroup.org/jmxterm
? I could not find out what license it's under
What is the best or most commonly used JMX Console / Client
Thx, Juergen
I faced into the same problem and that's why I wrote simple utility to help me update JMX properties on several machines by running one command. Also, It makes possibility to get their values by running tool by cron. I wrote post about that http://simpletoad.blogspot.com/2013/06/jmx-batch-updates.html. Plz, share your opinion. There is also code available on github, don't hesitate to fork me
Related
Is it possible to generate reports from remote result files?
I've tried many possibilities without any result, any help would be really appreciated :)
What I've tried
well I tried to ssh to my remote server and it didn't work, the official docs does not talk about remote results and it seems to me that the only way is to store the jmeter result file on server where jenkins is running.
i'm wondering if there is a way to do this remotely
I am looking for a simple way to restart IBM Web Application Server from Jenkins. Right now there are two steps involved to restart servers in Jenkins.
Executing shell command
Invoke Ant
I feel that there should be a simpler way than above. Please share your tips, tricks, or tweaks. I do not have access to IBM Web Application Servers. But I do have access to IBM Web Sphere console.
Thanks in advance.
We have an application which used JBoss 4.2.3.GA and we are migrating it to WildFly 8.2. In the old implementation, the JMX monitoring was done using twiddle. Since twiddle doesn't exist in WildFly, we are using the JBoss CLI for JMX monitoring.
Is it the right approach to use the JBoss CLI for JMX monitoring? Are there any command line tools similar to twiddle which can be used for JMX monitoring in WildFly?
One option to get something similar would be to simply query the JMX MBeans programmatically yourself. The advantage here is that your solution can be reused without depending on things like Twiddle which may be discontinued and also are compatible with other app servers.
Here is an example using Groovy to query an MBean in Tomcat and here is an example using Java to query an MBean in ActiveMQ.
If you choose to go with Groovy, you should be aware that there is a way to use Groovy (or Javascript or Python) to wrap the CLI and have more of a control flow. The CLI is great for simple declarative things, but lacks the versatility of a proper scripting language.
If you want to use pure CLI, then that's fine too, but I would suggest you create files which you can then call through bash e.g.:
$JBOSS_HOME/bin/jboss-cli.sh -c --file="my-jvm-monitoring.cli"
You might find this CLI model reference useful and also this blog about monitoring WildFly with the CLI
I have a windows service written in .Net 3.5 set to be automatically start, but it wouldn't start when system reboots.
As I understand, it may be caused by my service's dependency aren't started when the services tries to start. I don't know what my service depends on. I tried the workaround by adding windows print spooler as one of my service's dependencies, since print spooler is one of the services start quite late during the boot-up. Well, the work around doesn't work neither.
I'm using windows server 2003 r2. so the "delayed automatically restart" option is not available to me. and I can't use windows server 2008 just for this.
I'm out of ideas at the moment. Any suggestion would be appreciated.
A few suggestions to try out:
Check the system even logs
Add logging to your service, e.g. to system event log or use log4net
Strip the service down to a single message in the start-up or create a new stripped-down minimal service with as little dependencies as possible. See whether this starts
Check under which account your service is running and whether this account has the permission to "Run As A Service"
I have seen this question about deploying to WebSphere using the WAS ant tasks.
Is there a simpler way to do this? In the past I have deployed to Tomcat by dropping a war file into a directory. I was hoping there would be a similar mechanism for WebSphere that doesn't involve calling the IBM libraries or rely on RAD to be installed on your workstation.
Just a hint: if you activate "Log command assistance commands" in System Administration / Console preferences, you will get a logfile in the server log directory that contains the jython scripts for all actions you did on the console. So you can just deploy your stuff per console the first time, and then grab the commands for later and feed them into wsadmin.bat -lang jython "thecommandscomehere" for the next deployment.
There is the concept of WebSphere Rapid Deployment. It's supposed to be the same experience as what you describe for Tomcat.
One way to do it could be using Jython or jacl scripts. See those samples at IBM site.
[EDIT] Especially the wsadminlib.py.zip download near the bottom of the page contains a huge set of examples and helper functions to get you started.
WAS does provide a client jar containing some custom ant tasks. However they seem to be extremely bugy and dont work with remote servers.
IBM ANT TASK Javadoc
Netbeans also has support for was 6 and 6.1 but this again is still quite buggy, however it can be useful for generating some the bindings files etc.