This article has participated in the “Digitalstar Project” and won a creative gift package to challenge the creative incentive money.

preface

It is written for students who want to learn performance testing but do not know how to do it, and it is also used as my internal training material to share the routine and experience of performance testing. Don't be confused by the coat of performance testing, people who can write code to do performance testing are not necessarily better than those who use tools to do performance testing. The key is to see who has the tool in their hands, just like a great sword, ordinary people see it as scrap metal, at most take it to chop wood, and in the hands of the master like a tiger with wings, with skill; Well, few words said, it is recommended that the performance test of a beginner, don't get the company's existing projects to do performance test practice, afraid of don't know how to optimize the performance problems, don't know how to modify, and random changes will lead to the original service can not run normally, so the first step before starting setup performance test environment, from the Internet to find an open source system, deploy to the local, Then do the exercise (so it may not be easy to find performance problems in code in open source projects, but...).Copy the code

Friends in need, you can find me, I have deliberately created several performance problems, let you go to the actual practice…

I. Project introduction

JForum is a powerful and robust discussion board system implemented in Java. It offers an attractive interface, an efficient forum engine, an easy-to-use administration panel, an advanced permissions control system, and much more. Built from scratch around the MVC framework, it can be deployed on any Servlet 3.1 container or application server running at least Java 8, such as Tomcat, Jetty, and JBoss/WildFly. Its concise design and implementation make JForum easy to customize and extend.

Two, system requirements

Java 8 or above JEE application servers or Web/Servlet containers that support Servlet API 3.1 or higher

2.1. Test environment

Vm running environment Java Jdk8 and above
Application Server (container) tomcat 8.5 and above Local deployment 7.0 is also supported JBOSS deployment is also possible
Relational database mysql Community version 5.1 and above 5.1/5.5 is no longer supported after Jforum2.7 Local deployment 5.7 is also supported Supports PostgreSQL and MariaDB

Three, installation tutorial

3.1 Download the latest version of Jforum

Attached forum download address; Jforum-2.x. jar, which can be renamed by custom

3.2. Deploy Tomcat

Tomcat download address is attached; The original tomcat7.x download page has been removed from the official website, and only tomcat8.x will start

3.3. Configure JForum

Put jforum.war in the webapps directory and start bin/startup.sh

Go to http://localhost:8080/jforum/install.jsp; [see the official deployment document] (https://sourceforge.net/p/jforum2/wiki2/Installation/)

3.4. Matters needing attention

Jforum must be created for the database, and the database server address, account password and other information must be known.

Remember the Admin background account password. After login, the Admin background input port is displayed at the bottom.

3.5 Database (omitted)

Create a new database in the existing environment, no need to repeat the wheel of database deployment, of course, beginners or no experience in deploying database services can try to test their ability to set up a complete performance test environment.

Iv. Jforum configuration

Change the configuration path to web-INF \config

4.1, SystemGlobals. The properties

# # # # # # # # # # # # # # # # # # # # # # GENERAL SETTINGS # # # # # # # # # # # # # # # # # # # # # # server remember to revise the localhost address forum. The link = http://localhost:8080/jforum homepage. The link = http://localhost:8080/jforum # about low version of the localization, The modified zh_CN i18n. Board. Default = en_US # # # # # # # # # # Captcha # # # # # # # # # # performance tests, Captcha. Registration = false captcha. Posts = false ################## # MAIL SETTINGS: Configure the mail server ################## as requiredCopy the code

4.2, jforum – custom. Conf

# Here is the custom configuration: This is the web service access address, Link = HTTP \://192.168.2.188\:8080/jforum/ homepage.link= HTTP \://192.168.2.188\:8080/jforum/ homepageCopy the code

Five, the summary

The system has been successfully deployed on the Windows operating system and migrated to the Linux server. The database has been deployed on the local server. They belong to different IP addresses and the service architecture is Java + Tomcat +mysql.

5.1 Interface DisplayRemember the Admin account that Install configured

Important Administrator functions < The management background entrance will appear only when you log in with an administrator account >

5.2. Main business processes

  • Open system registration
  • Search post function
  • Users log in to post and reply
  • Visitor browsing function

At this point, the performance testing environment is set up, welcome students with different performance testing projects to learn from each other.

“Welcome to the discussion in the comments section. The excavation authorities will draw 100 nuggets in the comments section after project Diggnation. See the event article for details.”