Open pySatellite opened 5 months ago
$ pwd
~/app
$ tree
.
└── ng
└── controller
└── ngrinder-controller-3.5.8.war
2 directories, 1 file
$ cd ng/controller
$ java -jar ngrinder-controller-3.5.8.war
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.3.3.RELEASE)
.
.
.
2023-10-25 14:50:59,625 INFO TomcatWebServer.java:220 : Tomcat started on port(s): 8080 (http) with context path ''
2023-10-25 14:50:59,634 INFO StartupInfoLogger.java:61 : Started NGrinderControllerStarter in 16.156 seconds (JVM running for 17.014)
$ tree -L 3
.
└── ng
├── controller
│ └── ngrinder-controller-3.5.8.war
├── ngrinder-agent
│ ├── lib
│ ├── run_agent.bat
│ ├── run_agent.sh
│ ├── run_agent_bg.sh
│ ├── run_agent_internal.bat
│ ├── run_agent_internal.sh
│ ├── stop_agent.bat
│ └── stop_agent.sh
└── ngrinder-agent-3.5.8-localhost.tar
4 directories, 9 files $ pwd ~/app
$ cd ngrinder-agent $ ./run_agent.sh
$ sudo apt install net-tools
$ ifconfig -a | grep inet | grep broadcast
inet <???.??.???.??> netmask 255.255.240.0 broadcast 172.19.191.255
@Test
public void test() {
HTTPResponse response = request.GET("http://172.19.182.28/index.html", params)
if (response.statusCode == 301 || response.statusCode == 302) {
grinder.logger.warn("Warning. The response may not be correct. The response code was {}.", response.statusCode)
} else {
assertThat(response.statusCode, is(200))
}
// 추가
grinder.sleep(1000)
}
$ apache2ctl -V
$ pwd
/etc/apache2/mods-available
$ sudo cp mpm_event.conf mpm_event.conf.backup
$ sudo vi mpm_event.conf
# 파일 수정 후
$ sudo systemctl restart apache2
- 테스트 결과 에러 2 -> 459
15:58:27,120 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
15:58:27,121 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
15:58:27,122 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/home/awya5/app/ng/controller/ngrinder-controller-3.5.8.war!/WEB-INF/classes!/logback.xml]
15:58:27,123 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs multiple times on the classpath.
15:58:27,123 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/tmp/ngrinder-controller-3.5.8.war-spring-boot-libs-eb20bdfd-91cf-418d-9900-6c0edfa3d77c/grinder-core-3.9.1.jar!/logback.xml]
15:58:27,123 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/home/awya5/app/ng/controller/ngrinder-controller-3.5.8.war!/WEB-INF/classes!/logback.xml]
15:58:27,135 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@525f1e4e - URL [jar:file:/home/awya5/app/ng/controller/ngrinder-controller-3.5.8.war!/WEB-INF/classes!/logback.xml] is not of type file
15:58:27,188 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
15:58:27,190 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
15:58:27,192 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [console]
15:58:27,196 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
15:58:27,224 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.ngrinder.infra.logger.CoreLogger] to INFO
15:58:27,224 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.ngrinder.infra.logger.CoreLogger] to false
15:58:27,224 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [console] to Logger[org.ngrinder.infra.logger.CoreLogger]
15:58:27,225 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - ROOT level set to INFO
15:58:27,225 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [console] to Logger[ROOT]
15:58:27,225 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
15:58:27,225 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@75f9eccc - Registering current configuration as safe fallback point
-p / --port=8080 port is already occupied by the other system or failed to bind. Please use the other port Usage: ngrinder [options] Options: -cm, --cluster-mode cluster-mode can be easy or advanced Default: none -c, --context-path context path of the embedded web application. Default: / -exh, --ex-home nGridner extended home directory -nh, --ngrinder-home nGridner home directory -p, --port HTTP port of the server. The default port is 8080. -help, -?, -h prints this message Default: false
nGrinder : https://naver.github.io/ngrinder/
STEP 1
java 설치(설치 되어 있다면 SKIP)
설치
설치 경로 확인
vi ~/.zshrc 에 위 java 원 경로로 환경 변수 설정
설정 적용 및 자바 설치 확인