Recently during performing a load testing to our application, after taking stack trace from back-end, it appears 90% of http threads are locked as this kind of pattern:
"http-0.0.0.0-8080-12" daemon prio=6 tid=0x4bc5f620 nid=0xc54 waiting for monitor entry [0x4f4de000..0x4f4dfcec] at java.lang.ref.Referenc ……
One tiny find this week from our team,during I run the load testing and there is one step we need to fill the target date into the text box.
in our code, we need to parse date/time format using SimpleDateFormat class, so if IthreadA is parsing a value while threadB is changing the pattern, then error message bellowing could happen,"occasionally":
An interesting post by Brendan Gregg who did a very unthinkable experiment to his JBoss server.
So he found that when he shout at the JBoss server, the server will take a long Disk I/O latency....so he give us a "take away", do not shout at your Jboss if you want a high performance! :)
here is the link of Brendan Gregg's experiment: http://blogs.sun.com/brendan/entry/unusual_disk ……
i am used to write watir scripts to do the single user performance test or launch it under load test, it helps a lot when I want to get the response time from real user experience perspective.
but there is some situation i need to use Xpath to get the object which is to be clicked.... ie.button(:xpath, "//di ……
when you do automation test or performance test on web service, you may need to do some correlation work on dynamic value returned by server. Take Jmeter as an example, for correlation work, there is two ways to catch dynamic value 1. using Regular Expression Extractor-- you can write simple Regular Expression to extract the value 2. using XPath Extractor--write Xpath to seek the value ……
sometimes, we will meet the popup window issue with our automation scripts, it can not catch the window easily, so use the AutoItX3, we can solve this kind of problem well: require "watir" require "win32ole"
def check_for_popup_window
flag =0 autoit = WIN32OLE.new('AutoItX3.Control')   ……