Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / March 2007

Tip: Looking for answers? Try searching our database.

Remotely Launch and Debug High-Performance Scientific Java Applications

Thread view: 
Chessaurus - 07 Mar 2007 13:58 GMT
Does anyone know of tools (or IDE plugins) that could enable me to
conveniently launch and debug remote applications?

I'm a part of a team that develops processor-intensive and RAM-
intensive scientific applications, and our general strategy to date
has been this :

1) Develop a RAM or processor intensive algorithm on an individual PC
2) Try it out on the PC (unit tests, small data) to make sure it runs
3) Create a jar file
4) Manually upload the jar file to a high-performance server
5) Use GoToMyPC to test the application on the server

This is a laborious process, and  if something goes wrong on the
server, it's difficult to debug.  At one point, we used our source
control system to relay changes that the server would then check out,
build, and run.  But checking in "half baked" code to the source
control system interferes with the development process we have in
place.

Someone recommended that I consider using an application server like
Apache Tomcat, but I'd like a second opinion before I invested
significant time in this option.  I'm trying to avoid complexity and
execution overhead (I wouldn't want the system to severely affect the
performance of the application under test).

Any ideas?

-Chess
a24900@googlemail.com - 07 Mar 2007 18:50 GMT
> 1) Develop a RAM or processor intensive algorithm on an individual PC
> 2) Try it out on the PC (unit tests, small data) to make sure it runs
[quoted text clipped - 8 lines]
> control system interferes with the development process we have in
> place.

It's unclear what you want. A remote debugger? A deployment tool? A
testing framework? A continuous integration environment? A remote
desktop? A simple script to copy files around? Have a look at things
like Java WebStart, Java's simple jdb (which can already do remote
debugging), the Eclipse debugger, http://www.bluemarsh.com/java/jswat/
http://www.realvnc.com/what.html http://www.junit.org/ http://www.fitnesse.org/
http://cruisecontrol.sourceforge.net/ http://cruisecontrol.sourceforge.net/
Chessaurus - 07 Mar 2007 19:31 GMT
On Mar 7, 1:50 pm, "a24...@googlemail.com" <a24...@googlemail.com>
wrote:
> It's unclear what you want. A remote debugger? A deployment tool? A
> testing framework? A continuous integration environment? A remote
> desktop? A simple script to copy files around?

I appreciate these links -- I'm familiar with some of them (Junit,
CruiseControl, VNC) and I will investigate the rest.  To answer your
questions -- Ideally, I'm looking for a tool where I can push a button
from my IDE (IntelliJ or Eclipse) and have my currently
compiled .class files deployed to a remote server, run, and capable of
being debugged directly from my IDE.  I'm guessing that I could write
scripts to accomplish this (which I'll do if necessary), but I'm
hoping that I won't have to roll my own.
David Kerber - 07 Mar 2007 21:10 GMT
> On Mar 7, 1:50 pm, "a24...@googlemail.com" <a24...@googlemail.com>
> wrote:
[quoted text clipped - 10 lines]
> scripts to accomplish this (which I'll do if necessary), but I'm
> hoping that I won't have to roll my own.

I don't know about the copying part, but Eclipse can do remote
debugging.

Signature

Remove the ns_ from if replying by e-mail (but keep posts in the
newsgroups if possible).

Jens Kübler - 13 Mar 2007 13:25 GMT
> On Mar 7, 1:50 pm, "a24...@googlemail.com" <a24...@googlemail.com>
> wrote:
[quoted text clipped - 10 lines]
> scripts to accomplish this (which I'll do if necessary), but I'm
> hoping that I won't have to roll my own.

My suggestion would be "ant" as a build tool (already integrated into
eclipse).
Execution depends. You will need to use command line via remote shell unless
you have an application server ready which can handle .ear or .war files.
For remote debugging you can start your java jar with this additional
options:
-Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=4142,suspend=n

This sets up remote debugging on port 4142 to which you can connect via
eclipse ide or any other jdwp capable tool.

Greetings
Jens
Chessaurus - 14 Mar 2007 21:21 GMT
> Chessauruswrote:
> > On Mar 7, 1:50 pm, "a24...@googlemail.com" <a24...@googlemail.com>
[quoted text clipped - 25 lines]
> Greetings
> Jens

Thanks -- I think I'll do something very similar.  Maybe I'll even
write a little "launch agent" that automatically detects when a new
"launch description" file is placed in a prespecified, shared
directory.  It could then create a new virtual machine and execute the
new code.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.