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 / General / March 2006

Tip: Looking for answers? Try searching our database.

System Memeory

Thread view: 
Ravi - 27 Mar 2006 07:17 GMT
Hi,
I have a basic doubt in Applets. If I run a applet from browser, then
the memory is taken from the browser memory or seperate process memory
is used by the applet.

Thanks in Advance.

Cheers,
Ravi.
Oliver Wong - 27 Mar 2006 20:16 GMT
> Hi,
> I have a basic doubt in Applets. If I run a applet from browser, then
> the memory is taken from the browser memory or seperate process memory
> is used by the applet.

   Probably implementation specific.

   - Oliver
Ravi - 30 Mar 2006 07:20 GMT
You mean implementation on browser or OS specific
Thomas Schodt - 30 Mar 2006 08:12 GMT
> implementation on browser or OS specific

Yes.
Ravi - 30 Mar 2006 08:46 GMT
My doubt is wheather it depends on browser implementation or OS
implementation or it depends on both.
Thomas Schodt - 30 Mar 2006 09:55 GMT
> My doubt is wheather it depends on browser implementation or OS
> implementation or it depends on both.

To get a specific answer you need to ask a specific question.

Why is this information important to you?

What specific OS, browser and JRE version are you interested in?
[say "all" and you're likely to get a "depends" answer again...]

Remember to tell us why is this information important to you.
Ravi - 30 Mar 2006 11:22 GMT
I want for InternetExplorere in Windows OS.
This is important for making a decision for developing the product on
Applet or Stand Alone Java Application
Thomas Schodt - 30 Mar 2006 12:00 GMT
> I want for InternetExplorere in Windows OS.
> This is important for making a decision for developing the product on
> Applet or Stand Alone Java Application

Does it matter?
If you run a java application in a JRE, it will need some memory.
If you run an equivalent java applet in IE, it will need the same amount
of memory.

Why should you care if the browser is involved in the allocation of that
memory, or not?
Ravi - 30 Mar 2006 12:12 GMT
Thanks for following it. Now I hope you got that question correctly.
Why because The applet should not disturbed other application in the
opened in the saem browser or other browser.
Thomas Schodt - 30 Mar 2006 12:25 GMT
> Thanks for following it. Now I hope you got that question correctly.
> Why because The applet should not disturbed other application in the
> opened in the saem browser or other browser.

Now we're getting somewhere.

What you really want to know is how several applets may affect each
other? Specifically when it comes to memory allocation.

I'm afraid I wouldn't know, but there's bound to be someone around who does.
Oliver Wong - 30 Mar 2006 15:52 GMT
>> Thanks for following it. Now I hope you got that question correctly.
>> Why because The applet should not disturbed other application in the
[quoted text clipped - 7 lines]
> I'm afraid I wouldn't know, but there's bound to be someone around who
> does.

   Ravi, you could try an experiment. Put two applets on the same page
which use the same static variable. If a change in the static variable of
one applet affects the second applet, then you know that they are sharing
JVMs. If not, then you don't know (maybe they're not sharing, or maybe
they're sharing, but the JVM is being sneaky and detecting what you're
trying to do and circumventing it).

   - Oliver
Chris Uppal - 30 Mar 2006 17:07 GMT
>     Ravi, you could try an experiment. Put two applets on the same page
> which use the same static variable. If a change in the static variable of
> one applet affects the second applet, then you know that they are sharing
> JVMs. If not, then you don't know (maybe they're not sharing, or maybe
> they're sharing, but the JVM is being sneaky and detecting what you're
> trying to do and circumventing it).

If they do change together then you know they are sharing classloaders within
the same JVM.  If they do not change together then you know that either that
browser is not using a Sun JVM (or something derived from it), or that they are
sharing a JVM but using different classloaders for each applet.  The Sun JVMs
do not allow more than one JVM to be created in the same process.

At least that's the case for JSE, what happens on phones, and so on, with
not-necessarily Sun JVM implementations, is anybody's guess.

   -- chris


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.