Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Profiling multiple Eclipse web services
Profiling multiple Eclipse web services [message #48966] Tue, 03 January 2006 17:52 Go to next message
Eclipse UserFriend
Originally posted by: jkp1974a.cox.net

Hello everyone.

Ideally, I'd like to run 3 different web services (not related in any
sense) using the bottom up web service wizard. In addition, I'd like to
profile them using the TPTP project.

However, I have a bunch of questions.

Is it possible to use the TPTP project (v. 4.2) with web services in
eclipse simulatenously? (Sorry if I should post in the WTP group...).

If I wanted to profile 3 web services, would I need to open 3 separate
instances of eclipse? Do I need a copy of the agent controller for each
web service? Do I need a separate java VM for each one as well?

I am running Windows XP SP2, Apache Tomcat 5.5.12, Eclipse 3.1 w/ WTP 1.0
(and all requirements).

Thanks in advance to anyone's replies and answers. They're greatly
appreciated.

Ken
Re: Profiling multiple Eclipse web services [message #49153 is a reply to message #48966] Wed, 04 January 2006 17:08 Go to previous messageGo to next message
Samson Wai is currently offline Samson WaiFriend
Messages: 46
Registered: July 2009
Member
Hi Ken,

I hope I can answer some of the questions.

It is possible for TPTP to profile 3 different web services at the same
time. You will need:
- One copy of Eclipse with TPTP
- One Agent Controller per machine running web services

If you want to separate the profiling information for those 3 web services
then you will need to start each of them with its own jvm instance.
Otherwise the profiling data will be merged together. You will need to add
the "-XrunpiAgent" jvm argument to each of the jvm in order for TPTP to
attach to the java profiling agents.

This may be a typical setup:
1. Install, configure, and start Agent Controller
2. Start Eclipse and switch to the Profiling perspective
3. Start web service A with the "-XrunpiAgent" jvm argument
4. Start web service B with the "-XrunpiAgent" jvm argument
5. Start web service C with the "-XrunpiAgent" jvm argument
6. From Eclipse Profiling perspective, select "Run->Profile..."
7. From the Profiling configuration dialog select "Attach - Java Process"
and then click "New"
8. Select the host where the web serivces are running, then switch to the
"Agents" page
9. Select the java profiling agents and move them to the "Selected agents"
column
10. Change other profiling options if needed and click "Profile"

Samson


"Ken Po" <jkp1974a@cox.net> wrote in message
news:6cf362b8cde5320dc289bf97b7e6f8f7$1@www.eclipse.org...
> Hello everyone.
>
> Ideally, I'd like to run 3 different web services (not related in any
> sense) using the bottom up web service wizard. In addition, I'd like to
> profile them using the TPTP project.
>
> However, I have a bunch of questions.
>
> Is it possible to use the TPTP project (v. 4.2) with web services in
> eclipse simulatenously? (Sorry if I should post in the WTP group...).
>
> If I wanted to profile 3 web services, would I need to open 3 separate
> instances of eclipse? Do I need a copy of the agent controller for each
> web service? Do I need a separate java VM for each one as well?
>
> I am running Windows XP SP2, Apache Tomcat 5.5.12, Eclipse 3.1 w/ WTP 1.0
> (and all requirements).
>
> Thanks in advance to anyone's replies and answers. They're greatly
> appreciated.
>
> Ken
>
Re: Profiling multiple Eclipse web services [message #49732 is a reply to message #49153] Tue, 10 January 2006 00:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jkp1974a.cox.net

Samson,

Thanks a bunch for your answers/scenario. Hopefully, the WTP group will
post a response sometime in the near future -
http://www.eclipse.org/newsportal/article.php?id=9067&gr oup=eclipse.webtools#9067
I have some questions based on your responses:

1. If I was running all 3 web services on a single machine AND I wanted to
separate the data, would I need to install 3 JVMs (1 per web service)?

2. Does JVM = Java SDK? or can it be the J2RE?

Thanks again.

Ken

Samson Wai wrote:

> Hi Ken,

> I hope I can answer some of the questions.

> It is possible for TPTP to profile 3 different web services at the same
> time. You will need:
> - One copy of Eclipse with TPTP
> - One Agent Controller per machine running web services

> If you want to separate the profiling information for those 3 web services
> then you will need to start each of them with its own jvm instance.
> Otherwise the profiling data will be merged together. You will need to add
> the "-XrunpiAgent" jvm argument to each of the jvm in order for TPTP to
> attach to the java profiling agents.

> This may be a typical setup:
> 1. Install, configure, and start Agent Controller
> 2. Start Eclipse and switch to the Profiling perspective
> 3. Start web service A with the "-XrunpiAgent" jvm argument
> 4. Start web service B with the "-XrunpiAgent" jvm argument
> 5. Start web service C with the "-XrunpiAgent" jvm argument
> 6. From Eclipse Profiling perspective, select "Run->Profile..."
> 7. From the Profiling configuration dialog select "Attach - Java Process"
> and then click "New"
> 8. Select the host where the web serivces are running, then switch to the
> "Agents" page
> 9. Select the java profiling agents and move them to the "Selected agents"
> column
> 10. Change other profiling options if needed and click "Profile"

> Samson


> "Ken Po" <jkp1974a@cox.net> wrote in message
> news:6cf362b8cde5320dc289bf97b7e6f8f7$1@www.eclipse.org...
>> Hello everyone.
>>
>> Ideally, I'd like to run 3 different web services (not related in any
>> sense) using the bottom up web service wizard. In addition, I'd like to
>> profile them using the TPTP project.
>>
>> However, I have a bunch of questions.
>>
>> Is it possible to use the TPTP project (v. 4.2) with web services in
>> eclipse simulatenously? (Sorry if I should post in the WTP group...).
>>
>> If I wanted to profile 3 web services, would I need to open 3 separate
>> instances of eclipse? Do I need a copy of the agent controller for each
>> web service? Do I need a separate java VM for each one as well?
>>
>> I am running Windows XP SP2, Apache Tomcat 5.5.12, Eclipse 3.1 w/ WTP 1.0
>> (and all requirements).
>>
>> Thanks in advance to anyone's replies and answers. They're greatly
>> appreciated.
>>
>> Ken
>>
Re: Profiling multiple Eclipse web services [message #49823 is a reply to message #49732] Tue, 10 January 2006 13:40 Go to previous message
Samson Wai is currently offline Samson WaiFriend
Messages: 46
Registered: July 2009
Member
Hi Ken,

#1: One JRE/JDK installation is sufficient. You will need to start one
"java.exe" process per web service (i.e. one JVM per web service).

#2: A "JVM" is a "Java Virtual Machine". On Windows, one JVM corresponds to
one "java.exe" process. It could be either a J2RE (a "JRE") or a Java SDK (a
"JDK").

Samson

"Ken Po" <jkp1974a@cox.net> wrote in message
news:53115c45da7a2d2c285badb59f2272ef$1@www.eclipse.org...
> Samson,
>
> Thanks a bunch for your answers/scenario. Hopefully, the WTP group will
> post a response sometime in the near future -
>
http://www.eclipse.org/newsportal/article.php?id=9067&gr oup=eclipse.webtools#9067
> I have some questions based on your responses:
>
> 1. If I was running all 3 web services on a single machine AND I wanted to
> separate the data, would I need to install 3 JVMs (1 per web service)?
>
> 2. Does JVM = Java SDK? or can it be the J2RE?
>
> Thanks again.
>
> Ken
>
> Samson Wai wrote:
>
> > Hi Ken,
>
> > I hope I can answer some of the questions.
>
> > It is possible for TPTP to profile 3 different web services at the same
> > time. You will need:
> > - One copy of Eclipse with TPTP
> > - One Agent Controller per machine running web services
>
> > If you want to separate the profiling information for those 3 web
services
> > then you will need to start each of them with its own jvm instance.
> > Otherwise the profiling data will be merged together. You will need to
add
> > the "-XrunpiAgent" jvm argument to each of the jvm in order for TPTP to
> > attach to the java profiling agents.
>
> > This may be a typical setup:
> > 1. Install, configure, and start Agent Controller
> > 2. Start Eclipse and switch to the Profiling perspective
> > 3. Start web service A with the "-XrunpiAgent" jvm argument
> > 4. Start web service B with the "-XrunpiAgent" jvm argument
> > 5. Start web service C with the "-XrunpiAgent" jvm argument
> > 6. From Eclipse Profiling perspective, select "Run->Profile..."
> > 7. From the Profiling configuration dialog select "Attach - Java
Process"
> > and then click "New"
> > 8. Select the host where the web serivces are running, then switch to
the
> > "Agents" page
> > 9. Select the java profiling agents and move them to the "Selected
agents"
> > column
> > 10. Change other profiling options if needed and click "Profile"
>
> > Samson
>
>
> > "Ken Po" <jkp1974a@cox.net> wrote in message
> > news:6cf362b8cde5320dc289bf97b7e6f8f7$1@www.eclipse.org...
> >> Hello everyone.
> >>
> >> Ideally, I'd like to run 3 different web services (not related in any
> >> sense) using the bottom up web service wizard. In addition, I'd like to
> >> profile them using the TPTP project.
> >>
> >> However, I have a bunch of questions.
> >>
> >> Is it possible to use the TPTP project (v. 4.2) with web services in
> >> eclipse simulatenously? (Sorry if I should post in the WTP group...).
> >>
> >> If I wanted to profile 3 web services, would I need to open 3 separate
> >> instances of eclipse? Do I need a copy of the agent controller for each
> >> web service? Do I need a separate java VM for each one as well?
> >>
> >> I am running Windows XP SP2, Apache Tomcat 5.5.12, Eclipse 3.1 w/ WTP
1.0
> >> (and all requirements).
> >>
> >> Thanks in advance to anyone's replies and answers. They're greatly
> >> appreciated.
> >>
> >> Ken
> >>
>
Previous Topic:just want to test a plug-in
Next Topic:Number of references and details does not show up
Goto Forum:
  


Current Time: Fri Mar 29 08:01:38 GMT 2024

Powered by FUDForum. Page generated in 0.04656 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top