LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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, 10: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, 02: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, 06: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, 06: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, 08:32 AM   #5
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,262

Rep: Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679
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 08:33 AM.
 
Old 01-03-2013, 11:25 AM   #6
ashwin_cse
Member
 
Registered: Jul 2004
Distribution: arch, rhel, ubuntu, debian, gentoo
Posts: 134

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 01:57 AM
Glassfish vs tomcat difference? tikit Linux - Software 1 12-17-2011 03:00 AM
Simulate radius client takayama Linux - Networking 0 11-26-2010 03:42 PM
Matching sessions and connections on Tomcat xowl Linux - Networking 0 06-19-2007 10:58 AM
Putting apache, tomcat, j2sdk, jboss together ? linuxJaver Slackware 2 07-11-2003 12:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:41 AM.

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
Open Source Consulting | Domain Registration