0.097
thk thk Τετ. 21 Οκτ. 2009 22:11 tags λίνουξ , προγραμματισμός , κομπιούτερ 0 views
Ok , this is a  bug I ve been struggling long time to solve.
My red5 server was getting about 5(!) minutes to start on my live virtual server.
On home it takes about 15-20 seconds.
So as java is a very advanced language and when you make a change in your code you have to restart the whole universe, this was a stop-stop situation for me since I wanted to upload a new red5 application on my server and restarting took so much time (this also meant that while restarting red5 we could not execute the marvelous radio application , and maybe the radio would stop playing).

As with all problems you start by trying to erase and replace the whole thing. But this thing rarely works , instead it gives you more trouble . So it happened .I checked out red5 sources from svn ,but the trunk version made a lot more time to come up (maybe because of the bug i discovered after?? who knows (i am not so geek)) .
And then by wandering in internet i discovered these 2 pages that helped me resolve the problem.
1  ,  2 .
Take a good look at number 2. My problem is very slow startup and at logs it stuck when enabling the JMX and RMI. At log you stuck on a line like those:

2009-10-21 21:45:53,067 [main] INFO  org.red5.server.jmx.JMXAgent - JMX HTML adapter was not enabled
2009-10-21 21:45:53,097 [main] INFO  org.red5.server.jmx.JMXAgent - RMI Registry server was not found on port 9999


This is normal but on my case I was stuck there for 3 minutes in each case.
So.

Take a good look at this link above.

JMX resolves names in a messy and unreliable way : http://java.sun.com/j2se/1.4.2/docs/guide/rmi/faq.html#nethostname In a nutshell it's returning "localhost" (or possibly directly 127.0.0.1 - try "hostname -i" on your machine) to JConsole as the name of ther server so follow on calls resolve to the wrong machine.

In a virtual server (my case again) when it restarts,  the hostname  gets screwed in a non-existent hostname.
try to set it again with
sudo hostname <a real hostname>
and then red5 will magically start fast again.







  

thk thk Τετ. 21 Οκτ. 2009 21:48 0 views
λυθηκε το προβλημα καιρο με ταλαιπωρουσε. Αμα εισαι φτωχος και εχεις virtual server και οχι κανονικο μηχανημα εχεις και διαφορα κουφα προβληματα
thk thk Τετ. 21 Οκτ. 2009 18:33 0 views
το ραδιο ειναι λιγο off. προσπαθω να λυσω ενα προβλημα που κανει κανα 5λεπτο να ξεκινησει ο red5. εμπλεξα μα java.
thk thk Τετ. 21 Οκτ. 2009 16:57 0 views
ραδιο δε παιζει . blame it on fucking svn
thk thk Τετ. 21 Οκτ. 2009 16:55 0 views
και να φανταστειτε το svn το χρησιμοποιω σχεδον μονος μου! που να μπαινανε και να γραφανε και αλλοι κωδικα! μεγαλη πιπα.
thk thk Τετ. 21 Οκτ. 2009 16:34 0 views
και προσπαθωντας να διορθωσεις το χαος δημιουργεις παραπανω? Γιατι ? μιλαμε για πολυ γραφειοκρατικη λειτουργια. Κολλαει στο παρελθον και δεν μπορεις να του πεις ξεκολλα με ευκολο τροπο.
thk thk Τετ. 21 Οκτ. 2009 16:32 0 views
το svn μπορει να φερει το χαοσ
thk thk Τετ. 21 Οκτ. 2009 16:27 0 views
svn προβληματα παλι . προσοχη στα copy paste...
thk thk Τρι. 20 Οκτ. 2009 23:01 0 views
ε ακουτε ραδιο?
thk thk Τρι. 20 Οκτ. 2009 11:55 0 views
μη ξενερωνετε . ακουστε την επισημη γραμμη του καοτονικ και θα ρθειτε στα ισια σας.