Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

Veritas Cluster Weblogic Server Log File

Updated: 26 May 2010 | 9 comments
ronny_nch's picture
0 0 Votes
Login to vote

Hi Guys,

I am new to this forum. Pls bear with me.
Hi All,

I am trying to change the weblogic log file to an incremental log file so that I do not needd to restart weblogic everytime the server /tmp directory reach 100% usage. I want to make it an incremental log, just like adm messages.

At the moment, operation process is written to a log file (eg: Web-scssapp_online.out) and the size is growing. The size is not reduced when I use "rm" command even though physically, the file has been removed. I guess it's because the file is still active. The size will only be reduced when I restart the weblogic.

Anyone can help me pls?
Thanks in advance.

rgds,

discussion Filed Under:

Comments

M. Braun's picture
15
Oct
2009
0 Votes 0
Login to vote

Hi, Could you please provide

Hi,

Could you please provide some size examples of your /tmp/.VRTSWebLogic9/*.out files.
Are you using the default ResLogLevel INFO? Maybe TRACE?
How big is your temporary folder "/tmp" ?

Regards

Manuel

Please don't forget to mark your thread solved with whatever answer helped you : )

ronny_nch's picture
15
Oct
2009
0 Votes 0
Login to vote

Hi Manuel, I have set the

Hi Manuel,

I have set the logging levels to ERROR only. The /tmp is 512Mb.

We have several application running in this server. Refer to below:

-rw-r--r--   1 root     root        477K Oct 16 11:05 Web-Ngccsdapp_online.out
-rw-r--r--   1 root     root        9.8M Oct 16 11:12 Web-ebill2app_online.out
-rw-r--r--   1 root     root        679K Oct 16 10:04 Web-ebillapp_online.out
-rw-r--r--   1 root     root         12M Oct 16 11:13 Web-etermapp_online.out
-rw-r--r--   1 root     root        1.5M Oct 16 10:57 Web-hrmsapp_online.out
-rw-r--r--   1 root     root        147K Oct 16 10:43 Web-savedapp_online.out
-rw-r--r--   1 root     root        7.4K Mar 11  2009 ebill2app_online.out

Current size is small as I just restart weblogic last night.

Satish K. Pagare's picture
16
Oct
2009
0 Votes 0
Login to vote

Hi Ronny, The files <vcs

Hi Ronny,

The files <vcs weblogic resource name>_online.out in the /tmp directory maintain the output of the running WebLogic Server instance. The output is captured in those files for debug purposes. You can
safely remove the file once the online is successful for the WebLogic VCS resource. Regarding the
"rm" command not showing free space left, it is an expected behaviour :-) The system may take some
time to fully reclaim the rm'ed space.

Hope that helps,
Satish/

ronny_nch's picture
19
Oct
2009
0 Votes 0
Login to vote

Hi Satish, Thanks for your

Hi Satish,

Thanks for your feedback. But are you sure that "rm" commands works? Will veritas re-create the file back? I tried use "rm" command and waited for about 15 mins the space is still not reduced and i did not see any new file being created.

rgds,

Satish K. Pagare's picture
19
Oct
2009
0 Votes 0
Login to vote

Hi Ronny, The VCS agent will

Hi Ronny,

The VCS agent will not re-create the file once it is removed. However the behaviour is kind of expected on Unix.
You are right, the space will not be visible till the process closes the particular file.
See the forum http://stackoverflow.com/questions/332629/rm-not-f...

Also did you look into the /tmp/<output file of online entry point> to see if there are any errors being thrown
from the WebLogic Server. Any particular reason why the server is being so noisy while being online?

Thanks and Regards,
Satish/

ronny_nch's picture
19
Oct
2009
0 Votes 0
Login to vote

Hi Satish, So, what's the

Hi Satish,

So, what's the real space consumption after the removal of the file? Is it really reduced? And can we disable this output file, meaning that I do not want Veritas to create log file at all. And also, can we change the file to an incremental log file like the dmesg?

I did checked the file content, but unfortunately I am not the application owner, it was taken care by other team. So, I don't really understand what is the error all about. Anyway, below is what I got when tail -50 the file:

> PASV
< 227 Entering Passive Mode (172,21,150,2,248,31).
> STOR P00052344
< 150 Sending file to member P00052344 in file P00052344 in library XWDC.
< 226 File transfer completed successfully.
> QUIT
< 221 QUIT subcommand received.
Oct 20, 2009 2:02:29 PM db.AS400Database getConnection
INFO: Using scssDBas400P data source
Oct 20, 2009 2:02:29 PM db.AS400Database getConnection
INFO: Using scssDBas400P data source
Oct 20, 2009 2:02:31 PM db.AS400Database getConnection
INFO: Using scssDBas400P data source
Oct 20, 2009 2:02:31 PM db.AS400Database getConnection
INFO: Using scssDBas400P data source
Oct 20, 2009 2:02:44 PM db.AS400Database getConnection
INFO: Using scssDBas400P data source
Oct 20, 2009 2:02:44 PM db.AS400Database getConnection
INFO: Using scssDBas400P data source
Oct 20, 2009 2:02:46 PM db.AS400Database getConnection
INFO: Using scssDBas400P data source
Oct 20, 2009 2:02:47 PM db.AS400Database getConnection
INFO: Using scssDBas400P data source
< 220-QTCP at MYWPT2.
< 220 Connection will close if idle more than 5 minutes.
> USER ftpusr
< 331 Enter password.
> PASS ftpus
< 230 FTPUSR logged on.
> TYPE A
< 200 Representation type is ASCII nonprint.
> CWD XINF
< 250 "XINF" is current library.
> PWD
< 257 "XINF" is current library.
> PASV
< 227 Entering Passive Mode (172,21,150,2,98,39).
> STOR R00291855
< 150 Sending file to member R00291855 in file R00291855 in library XINF.
< 226 File transfer completed successfully.
> QUIT
< 221 QUIT subcommand received.
Oct 20, 2009 2:03:36 PM db.AS400Database getConnection
INFO: Using scssDBas400P data source
Oct 20, 2009 2:03:38 PM db.AS400Database getConnection
INFO: Using scssDBas400P data source
Oct 20, 2009 2:03:42 PM db.AS400Database getConnection
INFO: Using scssDBas400P data source
Oct 20, 2009 2:03:42 PM db.AS400Database getConnection
INFO: Using scssDBas400P data source

rgds,

Satish K. Pagare's picture
19
Oct
2009
0 Votes 0
Login to vote

There is no way to supress

There is no way to supress the creation of the output file through the agent. However you may try a work around.
As soon as online is finished, remove the output file, create a symlink with the same output file name linking
to /dev/null and see if that helps.

ronny_nch's picture
24
Nov
2009
0 Votes 0
Login to vote

hi all, Can I completely

hi all,

Can I completely disable the log file? Meaning no log file will be created in the /tmp.

rgds,

Satish K. Pagare's picture
25
Nov
2009
0 Votes 0
Login to vote

That is not possible with the

That is not possible with the current implementation.