Web driver brower heap analysis - memory

We are running our integration tests using selenium web driver(chrome/ie/firefox).
Is there are any options to analyze browser memory usage (heap analysis) from web driver tests.
(or)
How can I integrate this with my integration tests.
Is there options to save browser heap snapshot while running the web driver test.
Please suggest.

Not sure if this helped, but I just ran my tests locally and looked at the system usage on my computer.
Its not exact, but it gave me a ball park 512M in use per thread.
Basically, I added up the Chrome jobs and the chromedriver job and I just used the heaviest Java job.
If you have found a better way please share :)

Related

Chrome browserless Selenium on bamboo

I've developed a framework which runs selenium tests with no problem on my local computer.
I also have developed a pipeline on Bamboo to execute those tests. It does, problem is I have no chrome browser installed on bamboo and I get the error saying "There is no chrome binary" obviously. There is no chance to install anything on bamboo, so I need to run these tests with no browser (also headless).
I've checked this: https://github.com/browserless/chrome
Sounds good to what I want to achieve but I don't know how to do it.
Do I need to run docker by command and then point my driver to the port or what?
Can anyone shed some light? I pretty lost and there are not much examples (or I don't know how to find them)
Thanks!!

JMX batch client?

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

aws memory high usage

Recently I configured my instance into a micro environment in EC2 with glassfish and mysql in windows..
I deployed my war and i was able to access my site through http.
I changed my application and redeployed the war and it also worked.
When I was about to redeploy the war for 4th or 5th time, the application got deployed, I saw the message in the log file. But I was unable to access the site through http.
Then I tried the command "asadmin list-applications" and I got the following message.
Error occurred during initialization of VM
Could not reserve enough space for object heap
After that I was not able to connect to my instance through RDP and I had to reboot, I was able to access it again after that. I started the servers again (glassfish mysql), but no luck.
I noticed that the memory usage is around 90% or more. CPU isage is low.
now I can not access my site through http. what shall i do ?
Thanks in advance !
Honestly, there are a couple issues working against you here:
1) Windows requires FAR more RAM than Ubuntu to run at a minimum decent level.
2) GlassFish has a much larger footprint than Tomcat or Jetty.
Is there any particular reason you need Windows? Like is there a specific need that your server run some executables for file processing or something like that outside the JVM? Most would agree that Linux (Ubuntu or other) will give you much better results in performance and stability to run an App Server like GlassFish in any environment.

Server Development Tool?

For my programming tasks I use about 2-3 remote servers to deploy and run my code against different conditions. This cannot be emulated locally as the server configuration requires powerful hardware. Most of time I need to stop service, update binaries, start service, view logs in realtime, download logs. Currently I'm doing this manually and over time this becomes a real pain in the ass, especially because the environment is not ideal in terms of network bandwidth, reliability etc.
I just wonder if someone from server programmers have the similar problems and how do you bear with them. Any special tools/hints/secrets?
Sounds like you could use Scripting with Windows PowerShell to automate a lot of the manual tasks that you are performing now.
Unit testing and mocking helps. Instead of having to run all the big powerful stuff all the time, you can save that for a nightly build & smoke or CI server job (most of the time).
Similarly, using of a distributed CI server, like Hudson or Buildbot helps you script the distribution and testing to all the machines.

Is there a simpler way to deploy to WebSphere?

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.

Resources