Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 05-30-2006
ewiniar ewiniar is offline
Registered User
 
Name: ewiniar
Organization: soho
Project: ssl vpn
 
Join Date: Jan 2006
Posts: 30
Send a message via MSN to ewiniar Send a message via Skype™ to ewiniar
-->
log.0000000001 problem!

I use icegrid distribute my test program,In icegrid/registry directory and icegrid/node/servers/UserManager/dbs/ directroy,there is a file named
log.0000000001,it's size is 10M,how is this file produced ?Can I control it's size or disable it?
__________________
------------------


ewiniar Lee
Software Engineer
Company:THP Ltd.Co
Project:Communication lib project
Reply With Quote
  #2 (permalink)  
Old 05-30-2006
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,532
Hi,

It looks like a BerkeleyDB log file, such logs files are created if you open a Freeze database environment in your server. Does your server open a database environment? What is the configuration of your server?

Cheers,
Benoit.
Reply With Quote
  #3 (permalink)  
Old 05-30-2006
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,532
Sorry, you also mentioned the log files in the icegrid/registry directory which I suppose is the registry database directory. Log files in this directory are expected -- the registry is using Freeze maps to store information about the deployment.

I don't believe you can disable these log files. However, they should be removed automatically once they are not neccessary anymore. You can tune the IceGrid registry database environment configuration with the Freeze properties described in Appendix C.14 of the Ice manual (the name of the database environment for the registry is "Registry"). For more information on these log files, you can also check the documentation of BerkeleyDB on the Sleepycat website: http://www.sleepycat.com/docs/ref/toc.html

Cheers,
Benoit.
Reply With Quote
  #4 (permalink)  
Old 05-31-2006
ewiniar ewiniar is offline
Registered User
 
Name: ewiniar
Organization: soho
Project: ssl vpn
 
Join Date: Jan 2006
Posts: 30
Send a message via MSN to ewiniar Send a message via Skype™ to ewiniar
-->
How to tune the IceGrid registry database environment configuration ?

I'd checked the documentation of BerkeleyDB ,it tune size of log by setting set_lg_max property,but how to tune the IceGrid registry database environment configuration with the Freeze properties?
Actually,when run
Quote:
icegridnode --Ice.Config=config.icegrid --warn
in db/icegrid/registry directory,log.0000000001 has been there,
thus,should I tune the IceGrid registry database environment configuration in config.icegrid or chatapp-singlenode.xml?How to tune it ?thanks !


Regards
ewiniar
__________________
------------------


ewiniar Lee
Software Engineer
Company:THP Ltd.Co
Project:Communication lib project
Reply With Quote
  #5 (permalink)  
Old 05-31-2006
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,532
Hi,

The IceGrid registry configuration is in the config.icegrid file. The XML files contain the configuration of your own applications. However, you can't put BerkeleyDB properties in the IceGrid registry configuration file, the registry wouldn't understand them.

To set BerkeleyDB properties for the registry database environment, you should add a file named DB_CONFIG in the registry database environment directory (db/icegrid/registry). See here for more information on this file.

Cheers,
Benoit.
Reply With Quote
  #6 (permalink)  
Old 05-31-2006
ewiniar ewiniar is offline
Registered User
 
Name: ewiniar
Organization: soho
Project: ssl vpn
 
Join Date: Jan 2006
Posts: 30
Send a message via MSN to ewiniar Send a message via Skype™ to ewiniar
-->
Thanks!

Thanks Benoit,I see,You got that right,now I can define the size of log,
Thanks again!


Regards
ewiniar
__________________
------------------


ewiniar Lee
Software Engineer
Company:THP Ltd.Co
Project:Communication lib project
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 08:16 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.