西湖BLOG正在为您加载数据中……www.xhblog.com

西湖BLOG正在为您加载数据中……www.xhblog.com

博客搬家

joychester 发表于 2009-1-30 17:19:00
西湖博客看来又回来了,但是我的blog已经搬入了新家,不过也是我3年前建的一个,也是因为在国内被封,所以转到了西湖,西湖给我的印象就是快,性能不错,虽然bug不少,但做的也算是不错的一家,希望继续加油!:)

新的blog是:joychester.blogspot.com, google提供的,对我这个不讲究花哨的人来说足够了,很多功能我也懒的用,一夜之间我搬了60几篇博客,主要是之前自己的技术积累和体会,希望自己几年之后看到,不会自己笑话自己。。。
……

One thread lock issue sloved, another rises

joychester 发表于 2009-1-7 17:01:00
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
……

Class SimpleDateFormat is not thread safe

joychester 发表于 2009-1-5 18:41:00
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":

……

Do not shout at your JBoss!

joychester 发表于 2009-1-3 20:47:00
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 miss Sierra Nevada Beer

joychester 发表于 2009-1-2 20:14:00
突然想起前年在san jose 酒吧里喝到的啤酒,Sierra Nevada,啤酒的色泽跟我们普通喝到的啤酒不同,有些偏深,喝到嘴里苦中带甜,有股花瓣的清香。。。。(不知道是不是给女士喝的,哈哈,不过确实听好喝,价格也不是很贵)


不过还有一件印象深刻的是喝酒之前被服务员要求看护照,因为没带,所以问了句:“只带了国内身份证,能行不?”(注意,我的身份证还不是第二代的,还是最老款的那种,字迹还不是很清晰)
服务员看了看,说问问老板,说着拿着身份证去给经理过过眼
大概过了5分钟,他走过来,拿着啤酒单,对我微笑着说,没问题,您需要什么酒。。。同事都对我笑了,说明我看起来还年轻。。。。
……

2009是憧憬的一年

joychester 发表于 2009-1-1 0:42:00
经过2008这个多事之年,其实不想过多的回忆什么,倒是有种赶紧熬过2008年的感觉。。。。
冬天即将过去,春天还会远吗?
对于2009年,充满的更多是希望,想借个理由对自己说:新的开始,抛掉所有的不快,让我们重新上路。。。。。。
……

using Xpath way in Watir with Caution

joychester 发表于 2008-12-30 21:27:00
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
……

a simple example for Xpath on web service test

joychester 发表于 2008-12-30 21:03:00
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……

How to handle the popup window using watir scripts

joychester 发表于 2008-12-29 21:07:00
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')
  
……

AutoITX3, it helps to

joychester 发表于 2008-12-27 23:49:00
Once you got such an error, when you run in ruby:

……
首页 上一页 下一页 尾页 页次:1/15页  10篇日志/页 转到: