• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

From where does it get memory

 
Ranch Hand
Posts: 198
Oracle Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 !
 
Marshal
Posts: 79716
381
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving as too difficult for “beginning”.
 
Ranch Hand
Posts: 439
Hibernate Eclipse IDE Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 1044
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Oracle Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ivan, Yes this is Linux box having shared drive..
 
And then the flying monkeys attacked. My only defense was this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic