The test project deployment javaweb

Summary:

  In order to facilitate the performance test, we will deploy a javaweb project, the project itself and this set course no relationship, only for testing.
 

  1. Create a dashboard database  

  Information found in the sql script file dashboard.sql , in linux executed on the server.

 use

 cat dashboard.sql | mysql ‐uroot ‐proot
  Once created, you can see there are three tables.

 

 2. Deploy a web application

  Find a dashboard-web.war uploaded to the Linux system I have here is the direct use xf5 uploaded directly without using the command

   Decompression war package

jar ‐xvf dashboard‐web.war

  Delete extracting good war package

rm ‐rf dashboard‐web.war

  Modify the database configuration file

cd apache-tomcat-8.5.34/webapps/ROOT/WEB-INF/classes/
vim jdbc.properties

  Modifications are as follows

jdbc.driverClassName=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://192.168.147.66:3306/dashboard?useUnicode=true&characterEncoding=utf8&autoReconnect=true&allowMultiQueries=true
jdbc.username=root
jdbc.password=root

  Restart Tomcat8 access http://192.168.147.66:8080/index

3. Use Apache JMeter test

   Apache JMeter is an open source stress testing tools, by means of this tool we tested, will test the tomcat throughput and other information;

    Download   http://jmeter.apache.org/download_jmeter.cgi

    Once downloaded, decompress

  Go to the bin directory, find imeter.bat file, double-click to start;

   Create a new query results, click start test

 

Guess you like

Origin www.cnblogs.com/ws1149939228/p/12456709.html