A bad configured logrotate can cause a problems with memory leak ?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting A bad configured logrotate can cause a problems with memory leak ?
# 1  
Old 07-28-2011
Data A bad configured logrotate can cause a problems with memory leak ?

I am newbe to unix.
I have a very serious problem on my server.
I have a java application running, and all day on Monday morning, the process that is associated with this java is locked.
Usually I doing a shutdown by the shutdown java command , you have to kill the process with the kill-kill Number of process,
only with shutdown command the process dont die, he is locked.

logrotate there are many scripts on my server and I believe it is bringing this problem.
I researched a lot about this, but I still can not understand how this works.
Could you please help me:]
Following the end of this post I put my logrotate
I would like to know if the script is correct.
I would like to knoww if this script can cause the problem I mentioned.

Thank you in advance.


Scripts:
Code:
#TOMCAT 1
/opt/tomcat-magnolia/apache-tomcat-6.0.29/logs/* {
           rotate 3
           size=50M
	   compress
	   olddir /opt/tomcat-magnolia/apache-tomcat-6.0.29/logs/old
           sharedscripts
           copytruncate 
	   missingok 
       }
	   
	   
#TOMCAT 2
/opt/tomcat6/logs/*.out /opt/tomcat6/logs/*.log {
           rotate 3
           size=50M
           compress
           olddir /opt/tomcat6/logs/old
           sharedscripts
           copytruncate
           missingok
       }
	  
#APACHE
/opt/apache2/logs/*_log {
           rotate 5
           weekly
	   compress
           sharedscripts
           postrotate
               killall -HUP httpd
           endscript
       }

#AND OTHER 10 SCRIPT OF LOGROTATE...


Last edited by pludi; 07-28-2011 at 11:13 AM..
# 2  
Old 08-01-2011
Lots of complaints, replacements:
logrotate replacement - Google Search
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Reuse old/configured server for new purpose problems.

Greetings. First of all I consider myself a newbe in Linux, that's why I'm seeking your help so please be patient! I was given an old server (Solaris) that has Oracle (10.2.0) installed with a few databases. I'm supposed to reuse this server for this new application which will process data... (11 Replies)
Discussion started by: RedSpyder
11 Replies

2. Web Development

Finding Cause of Memory Leak

Hi We have just got a dedicated server with Fasthosts, O/S is Linux CentOS 6 64 bit. It was a fresh install and I have just moved one WordPress site onto there. The problem is we seem to be getting a memory leak (that's what Fasthosts said) and the database (I think) keeps crashing, so we... (3 Replies)
Discussion started by: Pokeyzx
3 Replies

3. Red Hat

Memory leak

Hi all I am using RED HAT 5.4, and i am getting memory uses problem. when i use "sync;echo 3 > /proc/sys/vm/drop_cache" command the memory will release after 2,3 hour memory show 95%. pls suggest right way. thanks (37 Replies)
Discussion started by: reply.ravi
37 Replies

4. Programming

Memory Leak

Hi, I am trying a database server which keeps a B+ plus tree structure and works on it. I am trying to find the memory used/leak while executing this process. I check the memory leak by using ps uax command. When i execute a delete query i am sure that my code frees up the existing... (9 Replies)
Discussion started by: kumaran_5555
9 Replies

5. HP-UX

Problem with memory leak

Hi, This is my 1st post here. I am facing a rather weired problem. I have a C++ binary running on HP-UX. The output of top as well as glance shows periodic increase in memory. But when i use gdb to detect it, i dont get the desired output...gdb says...no leaks found. Just to mention that I have... (2 Replies)
Discussion started by: kshk123
2 Replies

6. IP Networking

memory leak?

Hi All, my client server application can work in two modes: 1) one direction - only client sends msgs to server 2) two directions - server gives 'answers' to client. when program run in the first mode it looks OK, but when server answers to client than client's application exit its... (2 Replies)
Discussion started by: lenna
2 Replies

7. Programming

Memory LEAK with pthreads

I have this code... #include <stdio.h> #include <iostream> #include <pthread.h> static void* cliente(void *datos); int main() { pthread_attr_t tattr; int ret; size_t size = PTHREAD_STACK_MIN + 0x0100; ret = pthread_attr_init(&tattr); ret =... (8 Replies)
Discussion started by: JEscola
8 Replies

8. UNIX for Advanced & Expert Users

Check memory leak

I am running c++ code on AIX unix.I have a doubt that my code is using some memory but it is not clearing that.Some time i am getting heap allocation problem.In my code i am not using any malloc,new functions also i am justing using pointers and arrays. Is there any way i can find out if the... (2 Replies)
Discussion started by: ukatru
2 Replies

9. Programming

about virtual memory and memory leak

Hi, First of all I appreciate this group very much for its informative discussions and posts. Here is my question. I have one process whose virtual memory size increases linearly from 6MB to 12MB in 20 minutes. Does that mean my process has memory leaks? In what cases does the... (4 Replies)
Discussion started by: shriashishpatil
4 Replies
Login or Register to Ask a Question