Return-Path: X-Original-To: apmail-incubator-openmeetings-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-openmeetings-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 837D69823 for ; Sun, 26 Feb 2012 14:18:48 +0000 (UTC) Received: (qmail 61753 invoked by uid 500); 26 Feb 2012 14:18:48 -0000 Delivered-To: apmail-incubator-openmeetings-dev-archive@incubator.apache.org Received: (qmail 61732 invoked by uid 500); 26 Feb 2012 14:18:48 -0000 Mailing-List: contact openmeetings-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: openmeetings-dev@incubator.apache.org Delivered-To: mailing list openmeetings-dev@incubator.apache.org Received: (qmail 61724 invoked by uid 99); 26 Feb 2012 14:18:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Feb 2012 14:18:48 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of seba.wagner@gmail.com designates 74.125.82.175 as permitted sender) Received: from [74.125.82.175] (HELO mail-we0-f175.google.com) (74.125.82.175) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Feb 2012 14:18:44 +0000 Received: by wera1 with SMTP id a1so146253wer.6 for ; Sun, 26 Feb 2012 06:18:22 -0800 (PST) Received-SPF: pass (google.com: domain of seba.wagner@gmail.com designates 10.180.74.177 as permitted sender) client-ip=10.180.74.177; Authentication-Results: mr.google.com; spf=pass (google.com: domain of seba.wagner@gmail.com designates 10.180.74.177 as permitted sender) smtp.mail=seba.wagner@gmail.com; dkim=pass header.i=seba.wagner@gmail.com Received: from mr.google.com ([10.180.74.177]) by 10.180.74.177 with SMTP id u17mr20284346wiv.13.1330265902538 (num_hops = 1); Sun, 26 Feb 2012 06:18:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=1hCF7Baf2T5K/dC/zOdI/uf2HwMxhYuQ+uVQsGwZfUc=; b=pd85ljIUUJApdwi4zXDgEiDqMF89Ds11HlW4KWa9uYAIlQJhzGsgm9ZOoYu6MoTaX0 MPHpARB+8Dn/G+dIqRGAbA/fdyvudhf9BEMFQ/DsQYlu1Ehtzicd3je0qJUzRDXwH3SR 5hPG9uD7RruIcGfGq4Yz+koSmeACUl3chfDUU= Received: by 10.180.74.177 with SMTP id u17mr16175388wiv.13.1330265902275; Sun, 26 Feb 2012 06:18:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.51.205 with HTTP; Sun, 26 Feb 2012 06:18:02 -0800 (PST) In-Reply-To: References: From: "seba.wagner@gmail.com" Date: Sun, 26 Feb 2012 15:18:02 +0100 Message-ID: Subject: Re: deploying multiple openmeetings instances into a single red5 To: openmeetings-dev@incubator.apache.org Cc: Alexei Fedotov Content-Type: multipart/alternative; boundary=f46d0438900b8fda9804b9deaa64 --f46d0438900b8fda9804b9deaa64 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Okay thanks! Sebastian 2012/2/26 Maxim Solodovnik > 1.9.1 will not work > I did 1 additional commit to trunk to make this work: > WebContent/WEB-INF/red5-web.xml: > value=3D"SYSTEM_PROPERTIES_MODE_FALLBACK"/> > > without this property set modifying properties file would not help. > > On Sun, Feb 26, 2012 at 16:38, seba.wagner@gmail.com > wrote: > > > unfortunately this doesn't work. > > I also tried to add the > > > > webAppRootKey > > /firstapp > > > > in the web.xml. But it doesn't work. The behaviour is the same as > > before, one instance does work, while the other instance in the same > > red5 container loads the SWF but can't connect via RTMP to it. > > I was testing with Version 1.9.1. I will try to verify locally with > > trunk again, maybe there was some changes in Red5 that make it work on > > your side. > > > > Sebastian > > > > 2012/2/23 Maxim Solodovnik : > > > In my opinion the easier is renaming - is better. > > > Current instruction is 4 steps long, and it still leads to the > > difficulties. > > > > > > Multiple instances are required not so often, so I would leave the > things > > > as it is now and update instruction. > > > > > > On Wed, Feb 22, 2012 at 17:23, seba.wagner@gmail.com > > > wrote: > > > > > >> I had no chance yet to test it in production environment as I have t= o > > make > > >> an appointment for downtime of the instances first. Will check it ou= t > > soon > > >> and let you know. > > >> > > >> I think we should add the config key to change to the docs at: > > >> http://incubator.apache.org/openmeetings/WebappNamePath.html > > >> > > >> From my point of view it would make sense to change the > > red5-web.properties > > >> even if you only deploy a single instance of OpenMeetings into Red5. > > >> > > >> Sebastian > > >> > > >> 2012/2/22 Alexei Fedotov > > >> > > >> > Maxim, you are welcome to add anything to FAQ > > >> > For example, we have wiki@ Apache > > >> > https://cwiki.apache.org/OPENMEETINGS/ > > >> > -- > > >> > With best regards / =D1=81 =D0=BD=D0=B0=D0=B8=D0=BB=D1=83=D1=87=D1= =88=D0=B8=D0=BC=D0=B8 =D0=BF=D0=BE=D0=B6=D0=B5=D0=BB=D0=B0=D0=BD=D0=B8=D1= =8F=D0=BC=D0=B8, > > >> > Alexei Fedotov / =D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9 =D0=A4= =D0=B5=D0=B4=D0=BE=D1=82=D0=BE=D0=B2, > > >> > http://dataved.ru/ > > >> > +7 916 562 8095 > > >> > > > >> > > > >> > > > >> > On Wed, Feb 22, 2012 at 6:05 AM, Maxim Solodovnik < > > solomax666@gmail.com> > > >> > wrote: > > >> > > Hello Sebastian, > > >> > > > > >> > > Are my findings were helpful? > > >> > > Should it be added to some FAQ? > > >> > > > > >> > > On Sun, Feb 19, 2012 at 13:12, Maxim Solodovnik < > > solomax666@gmail.com > > >> > >wrote: > > >> > > > > >> > >> Hello Sebastian, > > >> > >> > > >> > >> finally I was able to resolve this issue. > > >> > >> To run more than 1 OM on same red5 you need to: > > >> > >> 1) in case of java memory problems set > > "-XX:+CMSClassUnloadingEnabled > > >> > >> -XX:+CMSPermGenSweepingEnabled -XX:MaxPermSize=3D128M" java opt= ions > > >> > >> 2) edit "webapps/om/WEB-INF/red5-web.properties" for every OM > > instance > > >> > and > > >> > >> add the following line "webapp.contextPath=3D/om" to it (conte= xt > of > > >> every > > >> > >> instance should match the folder name in webapps dir) > > >> > >> > > >> > >> > > >> > >> > > >> > >> > > >> > >> On Sat, Feb 18, 2012 at 18:51, Maxim Solodovnik < > > solomax666@gmail.com > > >> > >wrote: > > >> > >> > > >> > >>> After copying openmeetins to om I forgot to rename AppRootKey = in > > >> > >>> config.xml > > >> > >>> After renaming localhost:5080/om start work as expected > > >> > >>> localhost:5080/openmeetings failed to connect: > > >> > >>> > > >> > >>> log/red5.log:2012-02-18 17:45:46,443 [NioProcessor-15] DEBUG > > >> > >>> o.r.server.net.rtmp.BaseRTMPHandler - url: > > >> > >>> rtmp://localhost:1935/openmeetings/hibernate > > >> > >>> log/red5.log:2012-02-18 17:45:46,443 [NioProcessor-15] INFO > > >> > >>> o.red5.server.net.rtmp.RTMPHandler - Scope > openmeetings/hibernate > > >> not > > >> > >>> found on localhost > > >> > >>> > > >> > >>> will try to debug it... > > >> > >>> > > >> > >>> On Sat, Feb 18, 2012 at 18:43, seba.wagner@gmail.com < > > >> > >>> seba.wagner@gmail.com> wrote: > > >> > >>> > > >> > >>>> that was the same what I did find out. > > >> > >>>> I think I did not change the MaxPermSize, only xmx and xms > > values. > > >> > >>>> However the effect was the same. It seems to me like kind of > that > > >> > error > > >> > >>>> that you had lately? > > >> > >>>> > > >> > >>>> Sebatian > > >> > >>>> > > >> > >>>> > > >> > >>>> 2012/2/18 Maxim Solodovnik > > >> > >>>> > > >> > >>>>> *-XX:MaxPermSize=3D128M* > > >> > >>>>> *helps to resolve perm gen space errors* > > >> > >>>>> * > > >> > >>>>> * > > >> > >>>>> *now I get* > > >> > >>>>> * > > >> > >>>>> > > >> > >>>>> [DEBUG] [http-0.0.0.0-8088-exec-2] > > >> > >>>>> org.red5.server.net.rtmpt.RTMPTServlet - handleBadRequest > Close: > > >> > unknown > > >> > >>>>> client with id: 14 > > >> > >>>>> [WARN] [Red5_Scheduler_Worker-3] > > >> > >>>>> org.red5.server.net.rtmp.RTMPConnection - Closing > > RTMPTConnection > > >> > from > > >> > >>>>> 127.0.0.1 : 35851 to localhost:8088 (in: 1537 out 3073 ), wi= th > > id 3 > > >> > due to > > >> > >>>>> long handshake > > >> > >>>>> > > >> > >>>>> > > >> > >>>>> will investigate what's wrong with red5 > > >> > >>>>> * > > >> > >>>>> > > >> > >>>>> On Sat, Feb 18, 2012 at 18:12, Maxim Solodovnik < > > >> > solomax666@gmail.com>wrote: > > >> > >>>>> > > >> > >>>>>> To start 2 instances of OM I did the following: > > >> > >>>>>> 1) copy webapps/openmeetings to webapps/om > > >> > >>>>>> 2) change webapps/om persistence-unit name from openmeeting= s > to > > >> > >>>>>> openmeetings1 (in persistense.xml and > > >> > openmeetings-application...xml) > > >> > >>>>>> 3) start red5-debug.sh > > >> > >>>>>> get OutOfMemoryError > > >> > >>>>>> set -Xmx3G (tryed 4G also) had 6G on board > > >> > >>>>>> after accessing both OMs I got "java.lang.OutOfMemoryError: > > >> PermGen > > >> > >>>>>> space" > > >> > >>>>>> tried to add "-XX:+CMSClassUnloadingEnabled > > >> > >>>>>> -XX:+CMSPermGenSweepingEnabled" > > >> > >>>>>> > > >> > >>>>>> same "java.lang.OutOfMemoryError: PermGen space" > > >> > >>>>>> > > >> > >>>>>> maybe you know what else can I do? > > >> > >>>>>> (my system is Ubuntu x64 6GB RAM, Sun Java6 x64) > > >> > >>>>>> > > >> > >>>>>> > > >> > >>>>>> > > >> > >>>>>> On Sat, Feb 18, 2012 at 17:17, seba.wagner@gmail.com < > > >> > >>>>>> seba.wagner@gmail.com> wrote: > > >> > >>>>>> > > >> > >>>>>>> Thanks! > > >> > >>>>>>> > > >> > >>>>>>> > > >> > >>>>>>> 2012/2/18 Maxim Solodovnik > > >> > >>>>>>> > > >> > >>>>>>>> I'll try to set up 2 instances and take a look what is > going > > on > > >> > >>>>>>>> > > >> > >>>>>>>> > > >> > >>>>>>>> On Sat, Feb 18, 2012 at 17:11, seba.wagner@gmail.com < > > >> > >>>>>>>> seba.wagner@gmail.com> wrote: > > >> > >>>>>>>> > > >> > >>>>>>>>> yes but the beans in red5-service.xml I know for sure th= at > > >> those > > >> > >>>>>>>>> cannot be the problem, as this just has been working in > > >> previous > > >> > versions > > >> > >>>>>>>>> of openmeetings/red5. > > >> > >>>>>>>>> > > >> > >>>>>>>>> > > >> > >>>>>>>>> Sebastian > > >> > >>>>>>>>> > > >> > >>>>>>>>> 2012/2/18 Maxim Solodovnik > > >> > >>>>>>>>> > > >> > >>>>>>>>>> Those defined in openmeetings-applicationContext.xml > > >> > >>>>>>>>>> and various services definitions (from > red5-services/*xml) > > >> > >>>>>>>>>> > > >> > >>>>>>>>>> On Sat, Feb 18, 2012 at 17:02, seba.wagner@gmail.com < > > >> > >>>>>>>>>> seba.wagner@gmail.com> wrote: > > >> > >>>>>>>>>> > > >> > >>>>>>>>>>> I think those names should only be unique inside the > > webapp's > > >> > >>>>>>>>>>> context. > > >> > >>>>>>>>>>> I mean Red5 does also natively use beans, spring et > > cetera. > > >> But > > >> > >>>>>>>>>>> it was possible to deploy multiple webapps into a sing= le > > red5 > > >> > container > > >> > >>>>>>>>>>> just like any other tomcat webapp. > > >> > >>>>>>>>>>> Each webapp had its own scope and RTMP-Endpoint. > > >> > >>>>>>>>>>> > > >> > >>>>>>>>>>> Which ejb's do you mean exactly? > > >> > >>>>>>>>>>> > > >> > >>>>>>>>>>> Sebastian > > >> > >>>>>>>>>>> > > >> > >>>>>>>>>>> > > >> > >>>>>>>>>>> 2012/2/18 Maxim Solodovnik > > >> > >>>>>>>>>>> > > >> > >>>>>>>>>>>> Hello Sebastian, > > >> > >>>>>>>>>>>> > > >> > >>>>>>>>>>>> I guess the cause of might be in the same ejb names. > > >> > >>>>>>>>>>>> If I'm not mistaken all beans need to have unique nam= es > > >> (some > > >> > >>>>>>>>>>>> names are hardcoded in java files so it might be > > challenging > > >> > task...). > > >> > >>>>>>>>>>>> > > >> > >>>>>>>>>>>> I can investigate. > > >> > >>>>>>>>>>>> > > >> > >>>>>>>>>>>> On Sat, Feb 18, 2012 at 16:51, seba.wagner@gmail.com = < > > >> > >>>>>>>>>>>> seba.wagner@gmail.com> wrote: > > >> > >>>>>>>>>>>> > > >> > >>>>>>>>>>>>> Hi Maxim, > > >> > >>>>>>>>>>>>> > > >> > >>>>>>>>>>>>> in the past it was possible to deploy OpenMeetings > > (under a > > >> > >>>>>>>>>>>>> different webapp name of course) multiple times in t= he > > same > > >> > Red5 container. > > >> > >>>>>>>>>>>>> > > >> > >>>>>>>>>>>>> Somehow this stopped working, I wonder why? > > >> > >>>>>>>>>>>>> The effect with OpenMeetings 1.9.1 is: > > >> > >>>>>>>>>>>>> If you deploy two instances of the openmeetings weba= pp > > into > > >> > >>>>>>>>>>>>> red5, the first one works as epxected, the second on= e, > > you > > >> > are able to run > > >> > >>>>>>>>>>>>> the installer but after that the SWF just won't be > able > > to > > >> > connect via RTMP. > > >> > >>>>>>>>>>>>> Do you got an idea if your webapp renaming / dynamic > > >> context > > >> > >>>>>>>>>>>>> loader has something todo with it? > > >> > >>>>>>>>>>>>> I think the log files are produced correctly, so eac= h > > >> > instance > > >> > >>>>>>>>>>>>> has its own log, but I cannot remember 100% now, I > will > > >> have > > >> > to check that > > >> > >>>>>>>>>>>>> again. > > >> > >>>>>>>>>>>>> Maybe I should also do that test again with the late= st > > >> > updated > > >> > >>>>>>>>>>>>> red5 now. > > >> > >>>>>>>>>>>>> > > >> > >>>>>>>>>>>>> Thanks, > > >> > >>>>>>>>>>>>> Sebastian > > >> > >>>>>>>>>>>>> > > >> > >>>>>>>>>>>>> -- > > >> > >>>>>>>>>>>>> Sebastian Wagner > > >> > >>>>>>>>>>>>> http://www.openmeetings.de > > >> > >>>>>>>>>>>>> http://incubator.apache.org/openmeetings/ > > >> > >>>>>>>>>>>>> http://www.webbase-design.de > > >> > >>>>>>>>>>>>> http://www.wagner-sebastian.com > > >> > >>>>>>>>>>>>> seba.wagner@gmail.com > > >> > >>>>>>>>>>>>> > > >> > >>>>>>>>>>>> > > >> > >>>>>>>>>>>> > > >> > >>>>>>>>>>>> > > >> > >>>>>>>>>>>> -- > > >> > >>>>>>>>>>>> WBR > > >> > >>>>>>>>>>>> Maxim aka solomax > > >> > >>>>>>>>>>>> > > >> > >>>>>>>>>>> > > >> > >>>>>>>>>>> > > >> > >>>>>>>>>>> > > >> > >>>>>>>>>>> -- > > >> > >>>>>>>>>>> Sebastian Wagner > > >> > >>>>>>>>>>> http://www.openmeetings.de > > >> > >>>>>>>>>>> http://incubator.apache.org/openmeetings/ > > >> > >>>>>>>>>>> http://www.webbase-design.de > > >> > >>>>>>>>>>> http://www.wagner-sebastian.com > > >> > >>>>>>>>>>> seba.wagner@gmail.com > > >> > >>>>>>>>>>> > > >> > >>>>>>>>>> > > >> > >>>>>>>>>> > > >> > >>>>>>>>>> > > >> > >>>>>>>>>> -- > > >> > >>>>>>>>>> WBR > > >> > >>>>>>>>>> Maxim aka solomax > > >> > >>>>>>>>>> > > >> > >>>>>>>>> > > >> > >>>>>>>>> > > >> > >>>>>>>>> > > >> > >>>>>>>>> -- > > >> > >>>>>>>>> Sebastian Wagner > > >> > >>>>>>>>> http://www.openmeetings.de > > >> > >>>>>>>>> http://incubator.apache.org/openmeetings/ > > >> > >>>>>>>>> http://www.webbase-design.de > > >> > >>>>>>>>> http://www.wagner-sebastian.com > > >> > >>>>>>>>> seba.wagner@gmail.com > > >> > >>>>>>>>> > > >> > >>>>>>>> > > >> > >>>>>>>> > > >> > >>>>>>>> > > >> > >>>>>>>> -- > > >> > >>>>>>>> WBR > > >> > >>>>>>>> Maxim aka solomax > > >> > >>>>>>>> > > >> > >>>>>>> > > >> > >>>>>>> > > >> > >>>>>>> > > >> > >>>>>>> -- > > >> > >>>>>>> Sebastian Wagner > > >> > >>>>>>> http://www.openmeetings.de > > >> > >>>>>>> http://incubator.apache.org/openmeetings/ > > >> > >>>>>>> http://www.webbase-design.de > > >> > >>>>>>> http://www.wagner-sebastian.com > > >> > >>>>>>> seba.wagner@gmail.com > > >> > >>>>>>> > > >> > >>>>>> > > >> > >>>>>> > > >> > >>>>>> > > >> > >>>>>> -- > > >> > >>>>>> WBR > > >> > >>>>>> Maxim aka solomax > > >> > >>>>>> > > >> > >>>>> > > >> > >>>>> > > >> > >>>>> > > >> > >>>>> -- > > >> > >>>>> WBR > > >> > >>>>> Maxim aka solomax > > >> > >>>>> > > >> > >>>> > > >> > >>>> > > >> > >>>> > > >> > >>>> -- > > >> > >>>> Sebastian Wagner > > >> > >>>> http://www.openmeetings.de > > >> > >>>> http://incubator.apache.org/openmeetings/ > > >> > >>>> http://www.webbase-design.de > > >> > >>>> http://www.wagner-sebastian.com > > >> > >>>> seba.wagner@gmail.com > > >> > >>>> > > >> > >>> > > >> > >>> > > >> > >>> > > >> > >>> -- > > >> > >>> WBR > > >> > >>> Maxim aka solomax > > >> > >>> > > >> > >> > > >> > >> > > >> > >> > > >> > >> -- > > >> > >> WBR > > >> > >> Maxim aka solomax > > >> > >> > > >> > > > > >> > > > > >> > > > > >> > > -- > > >> > > WBR > > >> > > Maxim aka solomax > > >> > > > >> > > >> > > >> > > >> -- > > >> Sebastian Wagner > > >> http://www.openmeetings.de > > >> http://incubator.apache.org/openmeetings/ > > >> http://www.webbase-design.de > > >> http://www.wagner-sebastian.com > > >> seba.wagner@gmail.com > > >> > > > > > > > > > > > > -- > > > WBR > > > Maxim aka solomax > > > > > > > > -- > > Sebastian Wagner > > http://www.openmeetings.de > > http://incubator.apache.org/openmeetings/ > > http://www.webbase-design.de > > http://www.wagner-sebastian.com > > seba.wagner@gmail.com > > > > > > -- > WBR > Maxim aka solomax > --=20 Sebastian Wagner http://www.openmeetings.de http://incubator.apache.org/openmeetings/ http://www.webbase-design.de http://www.wagner-sebastian.com seba.wagner@gmail.com --f46d0438900b8fda9804b9deaa64--