nitin yeola

Greenhorn
+ Follow
since Mar 27, 2012
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by nitin yeola

Thanks for your valuable feedback.

Does this mean that you have seen those 100 messages? Or merely that you think that's what might happen? If you see just one of these, just forget about them. If you see 100 after you have sent 100 messages, then you need to investigate further (in this case I'd suspect that the API that is sending these messages -whatever that means- is not being used correctly).



Yes, we have seen 100 warning messages for 100 posts.
We will investigate further related to API also.

Is it possible to stop external API threads in jforum after use?
5 years ago

SEVERE: The web application [/app] appears to have started a thread named [Connection Keep-Alive nullBroker #1@xxx:6849] but has failed to stop it. This is very likely to create a memory leak.



This log that indicating failed to stop it(thread), should I ignore it?

You mean to say that these threads get stopped when tomcat shutdown and they will not present in memory, Right?

And

Evidence is : For each post one new thread(above) get started and not stopped until tomcat shutdown.
Consider in one day 100 posts are created , when we shutdown tomcat we get 100 warnings messages mentioned as above.

If we never shutdown the tomcat, application takes more cpu usage and memory usage which leads to slowing down the application.
Day by day memory usage gets increased never released back.

Note: We are using jforum(Version 2.1.8) by integrating external applications to pass the post info to other applications. Is there any way in jforum to stop external threads ?

5 years ago
Hello,

In our application we sending out posted data to other application using broker url via jms this integration of code causing following memory leaks.

Jul 18, 2013 6:21:26 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/app] appears to have started a thread named [Connection Keep-Alive nullBroker #1@xxx:6849] but has failed to stop it. This is very likely to create a memory leak.
Jul 18, 2013 6:21:26 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/app] appears to have started a thread named [LinkReader Broker #1@xxx:6849] but has failed to stop it. This is very likely to create a memory leak.


For this we included jar and used methods from this library to send data.

These methods creating threads for each posting which are not stopping causing memory leak.

Can you suggest any way how to stop these threads in our environment because we are not able to find when they to have stop and which are they?
5 years ago
I want to know which threads are creating issue (i.e. slowing down) application.

Means how to find what are the problematic area of application causing issue?

Hope now you understand this.
5 years ago
Thanks Ulf & Tim

Can you please suggest some way to debug this and find out where is the issue?
5 years ago
Thanks..

In most of the places its mentioned that tomcat 6.0.24 have memory leakage bugs.
So we came to know from this information it may happening because of tomcat(check it http://wiki.apache.org/tomcat/MemoryLeakProtection)

is there any way to stop these long lasting threads of webaaps as I am new in multithreaded environment please help me to solve this?

If required any details let me know.
5 years ago
But when I shut down tomcat and check the threaddump using jstack it is showing threads mentioned earlier in waiting state.

I think these thread should not appear in threaddump.

Also can you help me what are ways to kill threads in web-application which are causing memory leaks?

thanks in advance..
5 years ago
Thanks Ulf

we are getting following log error when we shutdown tomcat for restart

Jul 18, 2013 6:21:21 AM org.quartz.core.QuartzScheduler shutdown
INFO: Scheduler Scheduler_$_NON_CLUSTERED shutdown complete.
Jul 18, 2013 6:21:26 AM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [/app] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Jul 18, 2013 6:21:26 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/app] appears to have started a thread named [Connection Keep-Alive nullBroker #1@xxx:6849] but has failed to stop it. This is very likely to create a memory leak.
Jul 18, 2013 6:21:26 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/app] appears to have started a thread named [LinkReader Broker #1@xxx:6849] but has failed to stop it. This is very likely to create a memory leak.

also we observed in threaddump these threads are in waiting state.

our production environment slowing down day by day we need to restart in every week.
Hope you got my point.
5 years ago
Hello

In our production environment we are facing memory leak issue for tomcat.

When we shut down tomcat we getting following error in catalina log

created a ThreadLocal with key of type [null] (value [null]) and a value of type [org.apache.lucene.index.SegmentTermEnum] (value [org.apache.lucene.index.SegmentTermEnum@19a419a4]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.


this issue slowing our production environment.

Can you please help in this to resolve.
How to kill these threads before shutdown tomcat?
And
Also there are some threads in waiting states how to kill that threads?

Thank you in advanced.
5 years ago
Hi Jeane,
you closed my last topic, actually I want to know which technology you have used in coderanch
to design freemarker template for mobile UI
Please give some suggestion on this topic.

Thanks
7 years ago
Hello,
Please help me out for creating mobile pages for jforum

Is there any API for freemarker template for developing mobile pages?
OR
Is there any other way to do this?

thanks
7 years ago
Thanks.

Then I have to change path every time wherever I have to installed my application..
Because I have testsite, localsite, production so need to careful everytime while deploying application.
7 years ago
Actually its generating before restart of apache but we have to restart tomcat to start generation of log again.

whether is it some relative path issue with log4j?
7 years ago
but we restarting tomcat with rctomcat6 script.
Is it tomcat restart?
if it is then how memory leaks occurring?

please reply i have to fix this bug.
7 years ago
Hello,

we have given relative path in log4j configuration but when we restart apache in our load balancing
server our log generation stops.

please help if any one know about this.

Thanks.
7 years ago