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 / September 2006

Tip: Looking for answers? Try searching our database.

how to get configuration settings

Thread view: 
coltrane - 12 Sep 2006 18:43 GMT
I am running apps on a solaris and windows box. Where are the
configuration parameters set and how can I dump the settings.

thanks your help

john
Manish Pandit - 12 Sep 2006 19:41 GMT
If you are setting the config params by passing them to JVM using
-Dproperty=value, you can access them by using
System.getProperty("name"). If you are storing configuration any other
way (like a config file), the JVM runtime will not be aware of it 'out
of the box' and you might want to write a wrapper class to dump them.

-cheers,
Manish

> I am running apps on a solaris and windows box. Where are the
> configuration parameters set and how can I dump the settings.
>
> thanks your help
>
> john
coltrane - 14 Sep 2006 16:01 GMT
Thanks,

where can I find the list of configuration parameters I can use.
I am looking for info on how to set the heap size but I cannot find
anything.
I'm probably not doing the correct searches.

thanks again

john

> If you are setting the config params by passing them to JVM using
> -Dproperty=value, you can access them by using
[quoted text clipped - 11 lines]
> >
> > john
Manish Pandit - 14 Sep 2006 16:59 GMT
-Xms initial java heap size
-Xmx maximum java heap size
-Xmn the size of the heap for the young generation

-cheers,
Manish

> Thanks,
>
[quoted text clipped - 22 lines]
> > >
> > > john
coltrane - 15 Sep 2006 13:38 GMT
thanks

> -Xms initial java heap size
> -Xmx maximum java heap size
[quoted text clipped - 29 lines]
> > > >
> > > > john


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.