aspose file tools*
The moose likes Distributed Java and the fly likes From where does it get memory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "From where does it get memory" Watch "From where does it get memory" New topic
Author

From where does it get memory

Manoj Kumar Jain
Ranch Hand

Joined: Aug 22, 2008
Posts: 193

Hi,

I am having a desktop application on the remote machine that I need to run. so, I am launching the application like below.

\\172.168.1.2\folder1\folder2\java\java.exe pkg1.subpkg1.MainClass

I am calling the java.exe of remote machine and also the class from remote machine itself. (please ignore syntax mistake)

My query is that when I launch the application from my local machine, from where does it consume memory from local or from remote machine. Is it running on the remote machine or on local.

I can see the javaw.exe running on my local machine but that is taking very less memory(when saw Mem Usage in task manager) so rest of the memory is allocated on remote itself ?
Please help !


Do not wait to strike till the iron is hot; but make it hot by striking....
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40052
    
  28
Moving as too difficult for “beginning”.
Saif Asif
Ranch Hand

Joined: Aug 11, 2011
Posts: 440

hello Manoj,
It will be using the remote systems resources . The javaw.exe you see on your local system must be some other java process.


Muhammad Saif Asif Mirza
OCJA(5/6) OCJP(6) OCJWCD(6)
Ivan Jozsef Balazs
Rancher

Joined: May 22, 2012
Posts: 905
    
    5
> My query is that when I launch the application from my local machine, from where does it consume memory

You access the remote executable: your box loads the remote file and it is then run locally consuming of course local memory and other resources (files, network etc.)

Having shared a network drive does not imply the executables can be run in the context of the sharing computer. The sharing computer might even have been a Linux box using samba - in this case it is not able to run a Windows executable at all (well not without "wine" or the like).
That java,exe might even not be runnable on the remote box due to version difference or 32 vs 64 bit issues even if it is also a Windows one.

Sharing a drive does not entitle external parties to run programs in the context of the sharing computer.
Manoj Kumar Jain
Ranch Hand

Joined: Aug 22, 2008
Posts: 193

Thanks Ivan, Yes this is Linux box having shared drive..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: From where does it get memory