controller 에서 스크립트 지정하고 실행시
에러가 나서 script validation을 해보니 아래와 같이 나오네요. 테스트 하려는 페이지는 당연히 웹에서 열립니다. 어떤 경우에 403 error를 내는지 궁금합니다. 2013-08-21 13:50:37,108 INFO The Grinder version 3.9.1 2013-08-21 13:50:37,113 INFO Java(TM) SE Runtime Environment 1.7.0_25-b15: Java HotSpot(TM) Client VM (23.25-b01, mixed mode) on Linux i386 2.6.18-348.6.1.el5xen 2013-08-21 13:50:37,117 INFO time zone is KST (+0900) 2013-08-21 13:50:37,207 INFO worker process 0 of agent number 0 2013-08-21 13:50:37,302 INFO instrumentation agents: byte code transforming instrumenter for Jython 2.5; byte code transforming instrumenter for Java 2013-08-21 13:50:40,568 INFO registered plug-in net.grinder.plugin.http.HTTPPlugin 2013-08-21 13:50:40,642 INFO running "script.py" using Jython 2.5.3 (2.5:c56500f08d34+, Aug 13 2012, 14:54:35) [Java HotSpot(TM) Client VM (Oracle Corporation)] 2013-08-21 13:50:40,671 INFO starting, will do 1 run 2013-08-21 13:50:40,671 INFO start time is 1377060640674 ms since Epoch 2013-08-21 13:50:40,705 INFO 테스트하려는 도메인 -> 403 Forbidden, 413 bytes 2013-08-21 13:50:40,708 INFO finished 1 run 2013-08-21 13:50:40,708 INFO elapsed time is 38 ms 2013-08-21 13:50:40,709 INFO Final statistics for this process: 2013-08-21 13:50:40,716 INFO Tests Errors Mean Test Test Time TPS Mean Response Response Mean time to Mean time to Mean time to Time (ms) Standard response bytes per errors resolve host establish first byte Deviation length second connection (ms) Test 1 0 1 ? 0.00 0.00 ? 0.00 0 ? ? ? "ptest.kimsq.co.kr" Totals 0 1 ? 0.00 0.00 ? 0.00 0 ? ? ? Tests resulting in error only contribute to the Errors column. Statistics for individual tests can be found in the data file, including (possibly incomplete) statistics for erroneous tests. Composite tests are marked with () and not included in the totals. |
Administrator
|
이것은.. 제가 신이 아닌 이상 맞출 수 없는 문제입니다. -.-;
즉 서버가 403를 내보냈기 때문에, 스크립트에서 해당 에러를 보여주는 겁니다. 문제 재현을 위해서는 에이전트 설치하신 PC에서 wget 으로 같은 URL을 호출해 보시기 바랍니다. |
관련 부분은
서버측 이상인듯 합니다. 그런데요. 테스트 페이지를 다른곳으로 옮기고 해봤는데 200 OK가 떨어지긴 했는데, 바로 error가 납니다. 아까 www.naver.com 테스트도 잘 되었는데 갑자기 안되네요. 어떤 원인이 있을까요? 참고로 performance test 메뉴의 status 에는 빨간불이 들어오고 mouse over 하니 console is being prepared console is started on port 12004. 1 agents are starting. stoped by error 라고 나옵니다. 아래는 script validate 결과입니다. 2013-08-21 16:05:42,716 INFO The Grinder version 3.9.1 2013-08-21 16:05:42,721 INFO Java(TM) SE Runtime Environment 1.7.0_25-b15: Java HotSpot(TM) Client VM (23.25-b01, mixed mode) on Linux i386 2.6.18-348.6.1.el5xen 2013-08-21 16:05:42,724 INFO time zone is KST (+0900) 2013-08-21 16:05:42,814 INFO worker process 0 of agent number 0 2013-08-21 16:05:42,910 INFO instrumentation agents: byte code transforming instrumenter for Jython 2.5; byte code transforming instrumenter for Java 2013-08-21 16:05:46,194 INFO registered plug-in net.grinder.plugin.http.HTTPPlugin 2013-08-21 16:05:46,249 INFO running "script.py" using Jython 2.5.3 (2.5:c56500f08d34+, Aug 13 2012, 14:54:35) [Java HotSpot(TM) Client VM (Oracle Corporation)] 2013-08-21 16:05:46,264 INFO starting, will do 1 run 2013-08-21 16:05:46,264 INFO start time is 1377068746264 ms since Epoch 2013-08-21 16:05:46,293 INFO 도메인 -> 200 OK, 171 bytes 2013-08-21 16:05:46,295 INFO finished 1 run 2013-08-21 16:05:46,296 INFO elapsed time is 32 ms 2013-08-21 16:05:46,296 INFO Final statistics for this process: 2013-08-21 16:05:46,302 INFO Tests Errors Mean Test Test Time TPS Mean Response Response Mean time to Mean time to Mean time to Time (ms) Standard response bytes per errors resolve host establish first byte Deviation length second connection (ms) Test 1 1 0 24.00 0.00 31.25 171.00 5343.75 0 0.00 6.00 18.00 "도메인" Totals 1 0 24.00 0.00 31.25 171.00 5343.75 0 0.00 6.00 18.00 Tests resulting in error only contribute to the Errors column. Statistics for individual tests can be found in the data file, including (possibly incomplete) statistics for erroneous tests. Composite tests are marked with () and not included in the totals. 2013-08-21 16:05:46,254 INFO validation-0: starting threads 2013-08-21 16:05:46,302 INFO validation-0: finished |
Administrator
|
잘은 모르겠으나, 아무래도 서버측에서 뭔가 IP 필터링을 하거나, 헤더값을 조사하여 402를 리턴할 수도 있겠네요.
아무런 설정을 가하지 않고 ngrinder 호출을 하면, HTTP 헤더에 아무런 값을 넣지 않고 호출합니다. 따라서 적절한 헤더를 주입하세요. ptest.kimsq.co.kr 이거 맞나요? 해킹당한것 같던데.. |
Free forum by Nabble | Edit this page |