• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

From where does it get memory

 
Manoj Kumar Jain
Ranch Hand
Posts: 198
Java Linux Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 !
 
Campbell Ritchie
Sheriff
Pie
Posts: 50289
80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving as too difficult for “beginning”.
 
Saif Asif
Ranch Hand
Posts: 440
Eclipse IDE Hibernate Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ivan Jozsef Balazs
Rancher
Posts: 982
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> 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
Posts: 198
Java Linux Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ivan, Yes this is Linux box having shared drive..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic