LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to simulate client connections to Tomcat, Glassfish, JBoss (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-simulate-client-connections-to-tomcat-glassfish-jboss-4175443823/)

josecolella 01-02-2013 10:19 AM

How to simulate client connections to Tomcat, Glassfish, JBoss
 
Hello, is there a way to simulate client requests to a servlet of JSP(Java Server Page) such as ab for Apache that can simulate how long these servers take to service the servlet or JSP????

rnoçmoi 01-03-2013 02:43 AM

My favorite tool to check web server availability or to test page is curl:

curl -v http://localhost:8080/myservlet/index.jsp

will request index JSP page from your servlet and log in console headers and consumed time.

Regards,

Arnaud.

josecolella 01-03-2013 06:16 AM

Thanks so much...I will use that...can curl be used to compare which of the three servers will respond to a client petition the fastest???...I know the network is a factor that will influence this as well, but can curl do a time comparison???

josecolella 01-03-2013 06:27 AM

Will curl also work on java servlets that have deployed in the servers???

szboardstretcher 01-03-2013 08:32 AM

Good morning. I dont use this anymore, so i can't vouch for its current state, but in my old all-jboss shop it did wonders for us and was considered an alternative to expensive 'loadrunner' licenses.

http://jmeter.apache.org/

Good luck!

edit: It is *very* in-depth, and very powerful, and feature-rich. It has a HUGE learning curve, at least it did for me, that is totally worth it.

ashwin_cse 01-03-2013 11:25 AM

Quote:

Originally Posted by josecolella (Post 4861987)
Will curl also work on java servlets that have deployed in the servers???

curl is a command line browser. So it will not only work with servlet or jsp. It will work with any web page . It has hundreds of options to simulate what you want and is one of the best tool to write a shell script involving web page. AFAIK ab is for load testing. Though curl can be used to measure the response time. I don't think curl can be used for load testing servlet.


All times are GMT -5. The time now is 05:42 PM.