LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-02-2013, 11:19 AM   #1
josecolella
Member
 
Registered: Nov 2010
Location: Milan, Italy
Distribution: Linux Mint 13, Debian 6.0
Posts: 62

Rep: Reputation: 3
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????
 
Old 01-03-2013, 03:43 AM   #2
rnoçmoi
LQ Newbie
 
Registered: Feb 2012
Distribution: Debian Jessie
Posts: 3

Rep: Reputation: Disabled
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.
 
Old 01-03-2013, 07:16 AM   #3
josecolella
Member
 
Registered: Nov 2010
Location: Milan, Italy
Distribution: Linux Mint 13, Debian 6.0
Posts: 62

Original Poster
Rep: Reputation: 3
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???
 
Old 01-03-2013, 07:27 AM   #4
josecolella
Member
 
Registered: Nov 2010
Location: Milan, Italy
Distribution: Linux Mint 13, Debian 6.0
Posts: 62

Original Poster
Rep: Reputation: 3
Will curl also work on java servlets that have deployed in the servers???
 
Old 01-03-2013, 09:32 AM   #5
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 3,788
Blog Entries: 1

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
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.

Last edited by szboardstretcher; 01-03-2013 at 09:33 AM.
 
Old 01-03-2013, 12:25 PM   #6
ashwin_cse
Member
 
Registered: Jul 2004
Distribution: arch, rhel
Posts: 133

Rep: Reputation: 22
Quote:
Originally Posted by josecolella View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Tomcat, JBoss, Glassfish comparing servers josecolella Linux - Server 5 12-19-2012 02:57 AM
Glassfish vs tomcat difference? tikit Linux - Software 1 12-17-2011 04:00 AM
Simulate radius client takayama Linux - Networking 0 11-26-2010 04:42 PM
Matching sessions and connections on Tomcat xowl Linux - Networking 0 06-19-2007 11:58 AM
Putting apache, tomcat, j2sdk, jboss together ? linuxJaver Slackware 2 07-11-2003 01:18 AM


All times are GMT -5. The time now is 12:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration