[Red5] RED5 has come to a crawl?

Dan Rossi spam at electroteque.org
Mon Nov 12 07:09:34 PST 2007


Nah ive setup somerthing like this in my custom logback.xml which ive  
put in every path i could think of so classes / lib / src

	<logger name="client.StreamClientRegistry">
		<level value="ERROR"/>

		<appender-ref ref="CUSTOMFILE" />
	</logger>

Its still showing up in the console so i dont think its taking the  
changes ?

On 13/11/2007, at 1:54 AM, Dan Rossi wrote:

> I refactored alot of things, one in particular was the midi app  
> which i needed to do this, it didnt like custom exception objects.
>
> log.error(err.getMessage());
>
> On 13/11/2007, at 12:21 AM, Lenny Sorey wrote:
>
>> Hi Dan,
>>
>> Not sure which Spring jar was causing my problem.
>>
>> Just know it was gone when I reloaded from Ivy.
>>
>> Regards,
>>
>> Lenny
>>
>> On Nov 12, 2007 7:05 AM, Dan Rossi <spam at electroteque.org> wrote:
>> Hi lenny interesting. I do get stuff  in red5.log , but not from my  
>> webapp which is using logback / sl4j, it comes out in the console  
>> though. None of the logger settings going to an appender has any  
>> effect so not sure if the file is being loaded. Ill let you know  
>> after I do some refactoring. Which spring jar are you talking  
>> about ? I used a few custom ones for a remoting service. I noticed  
>> mortbay includes its own sl4j or something like that.
>>
>> On 12/11/2007, at 11:52 PM, Lenny Sorey wrote:
>>
>>> Hi Dan,
>>>
>>> Here is what I had to do in order to get logback.xml working for me.
>>>
>>> 1. Purged the red5/lib folder and repopulated from IVY. (I went  
>>> through and plucked the custom jars and place them in a backup  
>>> folder.
>>>
>>> By purging and replacing red5/lib I got rid of a Spring jar that  
>>> is contains a log4j reference. Even after I had done all the  
>>> below, I too
>>> was getting a log4j reference still showing up in my log files.
>>>
>>>
>>> 2. I went through my red5/webapps folder and globally changed the  
>>> log4j stuff to the following:
>>>
>>> import org.slf4j.Logger;
>>> import org.slf4j.LoggerFactory;
>>>
>>> also went through and globally changed to this statement for logger
>>>
>>> protected static Logger log =  
>>> LoggerFactory.getLogger(ClassName.class);
>>>
>>> Also had to go through each web.xml in my webapps folders and  
>>> comment out any references to log4j.
>>>
>>> After doing the above the logback.xml stuff started to work quite  
>>> well.
>>>
>>> Getting a lot of detail now in my red5.log file
>>>
>>> Hope this helps.
>>>
>>> Lenny
>>>
>>>
>>> On 11/12/07, Dan Rossi <spam at electroteque.org> wrote:
>>> Hi paul still having issues, i cant seem to get my webapp to log  
>>> to a file. Im loading via eclipse debug, have put logback.xml into  
>>> the classes directory although bin is the default output folder  
>>> correct  ? The loggers are being bubbled up to the root logger  
>>> even when i comment them out of my webapp one.
>>>  Not sure what is going on here.
>>>
>>> On 07/11/2007, at 12:48 PM, Mondain wrote:
>>>
>>>> Guys,
>>>> The WEB-INF directory is not part of the classpath, therefore if  
>>>> it is not specified as part of the a path when loading properties  
>>>> the file will not be loaded / found. The WEB-INF/classes  
>>>> directory is part of the classpath as well as the internals of  
>>>> jar files contained in the WEB-INF/lib directory. I know this can  
>>>> be confusing but it is basic J2EE webapp class loader stuff.
>>>>
>>>> Paul
>>>>
>>>> On Nov 6, 2007 5:41 PM, Daniel Rossi <spam at electroteque.org> wrote:
>>>> I already have the logback.xml iside the webapp WEB-INF its not  
>>>> being loaded, and the eclipse logging plugin stops after loading  
>>>> the jetty classes.
>>>>
>>>> On 07/11/2007, at 12:32 PM, Mondain wrote:
>>>>
>>>>
>>>>> Please read: http://jira.red5.org/confluence/display/docs/Logging+Setup 
>>>>>  I updated for web applications.
>>>>>
>>>>> On Nov 6, 2007 4:55 PM, Daniel Rossi < spam at electroteque.org>  
>>>>> wrote:
>>>>> Hey i believe the logfactory now also needs to be this if  
>>>>> importing those packages
>>>>>
>>>>>
>>>>> private static final Logger log =  
>>>>> (Logger)LoggerFactory.getLogger(Application. class .getName());
>>>>>
>>>>> One of your classes is still trying to use log4j, there is the  
>>>>> logback.xml located in conf now, yes u have to comment out the  
>>>>> log4j stuff out of the web.xml. Unless logback.xml isnt being  
>>>>> loaded for some reason ? Im just about to ask a question about  
>>>>> per webapp logback configs as its not being loaded in.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On 07/11/2007, at 11:31 AM, Lenny Sorey wrote:
>>>>>
>>>>>
>>>>>> Hello All,
>>>>>>
>>>>>> I am using , Java 1.6_02, Tomcat 6.0.14 with RED5's later trunk  
>>>>>> update of  2462.
>>>>>>
>>>>>> I changed all my apps logging to the following:
>>>>>>
>>>>>> import org.slf4j.Logger ;
>>>>>> import org.slf4j.LoggerFactory;
>>>>>>
>>>>>> I don't know what is the matter but all my apps along with the  
>>>>>> standard RED5 apps
>>>>>> have just slowed to a crawl. It takes a long time for an app to  
>>>>>> even load.
>>>>>>
>>>>>> Yesterday the platform was popping along very fast. Today after  
>>>>>> the update and logging update, It is VERY slow.
>>>>>>
>>>>>> Are there any specific instructions regarding the slf4j logger.  
>>>>>> I just want to make sure
>>>>>> I have the platform configured correctly.
>>>>>>
>>>>>> Anything special in the web.xml that needs to be addressed?  
>>>>>> Anything need to be added or removed.
>>>>>>
>>>>>> I commented out the following in the web.xml file.
>>>>>>
>>>>>> <!--
>>>>>>  <context-param>
>>>>>>   <param-name>log4jConfigLocation</param-name>
>>>>>>   <param-value>/WEB-INF/log4j.properties</param-value>
>>>>>>  </context-param>
>>>>>>  -->
>>>>>>
>>>>>> <!--
>>>>>>     <listener>
>>>>>>         <listener-class>org.springframework. web.context.request.RequestContextListener 
>>>>>> </listener-class>
>>>>>>     </listener>
>>>>>>  -->
>>>>>>
>>>>>> But am still getting the following in the stdout.log file:
>>>>>>
>>>>>> log4j:WARN No appenders could be found for logger  
>>>>>> (org.springframework.web.context.ContextLoader ).
>>>>>> log4j:WARN Please initialize the log4j system properly.
>>>>>> [INFO] 2007-11-06 17:51:10,531 Thread-1: 
>>>>>> ( org.red5.server.jmx.JMXAgent.init [INFO] 2007-11-06  
>>>>>> 17:51:10,546 Thread-1:( org.red5.server.jmx.JMXAgent.init  
>>>>>> [INFO] 2007-11-06 17:51:11,343 Thread-1: 
>>>>>> ( org.red5.server.net.rtmp.RTMPMinaTransport.start [INFO]  
>>>>>> 2007-11-06 17:51:11,343 Thread-1: 
>>>>>> ( org.red5.server.net.rtmp.RTMPMinaTransport.start [INFO]  
>>>>>> 2007-11-06 17:51:11,343 Thread-1: 
>>>>>> ( org.red5.server.net.rtmp.RTMPMinaTransport.start [INFO]  
>>>>>> 2007-11-06 17:51:11,437 Thread-1: 
>>>>>> ( org.red5.server.net.rtmp.RTMPMinaTransport.start [INFO]  
>>>>>> 2007-11-06 17:51:11,437 Thread-1: 
>>>>>> ( org.red5.server.net.rtmp.RTMPMinaTransport.start [INFO]  
>>>>>> 2007-11-06 17:51:11,437 Thread-1: 
>>>>>> ( org.red5.server.net.rtmp.RTMPMinaTransport.start [INFO]  
>>>>>> 2007-11-06 17:51:11,468 Thread-1: 
>>>>>> ( org.red5.server.net.rtmp.RTMPMinaTransport.start [INFO]  
>>>>>> 2007-11-06 17:51:16,671 Thread-1: 
>>>>>> ( org.red5.server.stream.ProviderService.getVODProviderFile  
>>>>>> [INFO] 2007-11-06 17:51:16,671 Thread-1:(
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> Lenny
>>>>>> _______________________________________________
>>>>>> Red5 mailing list
>>>>>> Red5 at osflash.org
>>>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Red5 mailing list
>>>>> Red5 at osflash.org
>>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -- 
>>>>> It is difficult to free fools from the chains they revere. -  
>>>>> Voltaire
>>>>> _______________________________________________
>>>>> Red5 mailing list
>>>>> Red5 at osflash.org
>>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Red5 mailing list
>>>> Red5 at osflash.org
>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>>
>>>>
>>>>
>>>>
>>>> -- 
>>>> It is difficult to free fools from the chains they revere. -  
>>>> Voltaire _______________________________________________
>>>> Red5 mailing list
>>>> Red5 at osflash.org
>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>
>>>
>>>
>>> _______________________________________________
>>> Red5 mailing list
>>> Red5 at osflash.org
>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>
>>>
>>> _______________________________________________
>>> Red5 mailing list
>>> Red5 at osflash.org
>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>
>>
>> _______________________________________________
>> Red5 mailing list
>> Red5 at osflash.org
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>
>>
>> _______________________________________________
>> Red5 mailing list
>> Red5 at osflash.org
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20071113/5e97672d/attachment-0002.html 


More information about the Red5 mailing list