IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Linux Discussion :

[Java] Processus qui s'arrête de lui même.


Sujet :

Linux

  1. #1
    Membre à l'essai
    Homme Profil pro
    Développeur Web
    Inscrit en
    Avril 2012
    Messages
    8
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Avril 2012
    Messages : 8
    Points : 10
    Points
    10
    Par défaut [Java] Processus qui s'arrête de lui même.
    Bonjour, j'ai un problème important avec une application Java.

    Avant de commencer, des informations sur le matériel et mes essais;

    VPS 768MB (burst 1GB), 50GB d'espace disque et 8x 3.2GHz partagé.
    Sous Debian je n'arrive pas à compiler le serveur Red5
    J'ai testé CentOS 5 minimal, CentOS 5.4, CentOS 5.7 et CentOS 6
    J'ai testé Red5 version; 0.9, 0.9.1, 1.0rc2, 1.0rc1, 0.8, 0.8.rc1

    J'ai fait un guide sur l'installationde Red5, c'est la version française des guides actuel sur Internet pour Red5 : http://forum.ovh.com/showthread.php?p=513611#post513611

    Bon, voici le problème; dans tous les cas, j'arrive à compiler avec ant prepare et ant dist. Par la suite quand je désire démarrer le serveur (depuis le dossier dist de red5) tous marche, mais après quelques secondes, voir quelques minutes (jamais plus de 5minutes) le processus ce ferme.

    - Aucun log a l'écran avec une raison de cette fermeture
    - Aucun log fichier avec une raison de cette fermeture
    - Utilise moins de 768MB alloué de mon VPS
    - Avec nohup la raison de sorti est Exit 143.

    J'ai démarré Red5 avec le mode debug et highprefs, aucun message en plus, même problème.

    Dont pourquoi le processus s'arrête t-il, qu'il soit actif ou non (même l'orsque une utilisateur est connecté, il plante).

    Il y a t-il moyen de tracer qui fait planter le Java ?

    Merci de m'aider rapidement.

    Mise à jours
    J'ai ajouter dans les optiosn Java -Xrs, j'ai eux cette fois un message, rien de plus détaillés, mais bon;


  2. #2
    Modérateur
    Avatar de paissad
    Homme Profil pro
    Ingénieur de développement (Java/JEE/Eclipse RCP,EMF & webMethods)
    Inscrit en
    Avril 2006
    Messages
    1 043
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 38
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Ingénieur de développement (Java/JEE/Eclipse RCP,EMF & webMethods)
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2006
    Messages : 1 043
    Points : 2 560
    Points
    2 560
    Par défaut
    Bonjour,

    je ne connais pas Red5, mais ce sera quand même très difficile de t'aider sans messages de logs d'infos et surtout de logs d'erreurs.
    déjà ce que tu pourrais faire si tu crains que ce soit un problème de mémoire, c'est d'augmenter la taille en utilisant l'option Xmx au lieu de Xmr comme tu l'as indiqué
    Dans ce fichier red5.sh http://red5.googlecode.com/svn/java/.../0_9_1/red5.sh, et juste avant la ligne
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    export JAVA_OPTS="$LOGGING_OPTS $SECURITY_OPTS $JAVA_OPTS"
    tu ajoutes la ligne suivante voire un peu plus de 512M si tu veux.
    Je reste convaincu que red5 écrit forcément des logs quelque part, essaie de le trouver ... ça peut être spécifier dans un fichier de configuration, ou sinon fait un combo de 'locate red5' et grep "log" ... enfin, voià voilà

    Cordialement,
    Nous n'héritons pas de la terre de nos parents, nous l'empruntons à nos enfants.
    Le chat du site est aussi ici pour aider. Ne pas hésiter à visiter !

  3. #3
    Membre à l'essai
    Homme Profil pro
    Développeur Web
    Inscrit en
    Avril 2012
    Messages
    8
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Avril 2012
    Messages : 8
    Points : 10
    Points
    10
    Par défaut
    Voici le log, je n'ai rien de plus;

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    Starting Red5
    Picked up _JAVA_OPTIONS: -Xms32m -Xmx256m
    Red5 root: /usr/local/0_9rc1/dist
    Configuation root: /usr/local/0_9rc1/dist/conf
    Root: /usr/local/0_9rc1/dist
    Deploy type: bootstrap
    Logback selector: org.red5.logging.LoggingContextSelector
    Setting default logging context: default
    Red5 Server 0.9.0-dev $Revision: 3705 $ (http://code.google.com/p/red5/)
    [INFO] [main] org.springframework.context.support.FileSystemXmlApplicationContext - Refreshing org.springframework.context.support.FileSystemXmlApplicationContext@fcfa52: display name [org.springframework.context.support.FileSystemXmlApplicationContext@fcfa52]; startup date [Wed Oct 03 21:43:43 GMT 2012]; root of context hierarchy
    [INFO] [main] org.springframework.context.support.FileSystemXmlApplicationContext - Bean factory for application context [org.springframework.context.support.FileSystemXmlApplicationContext@fcfa52]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1b34126
    [INFO] [main] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from class path resource [red5.properties]
    [INFO] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1b34126: defining beans [placeholderConfig,red5.common,red5.core,context.loader,tomcat.server]; root of factory hierarchy
    [INFO] [main] org.springframework.context.support.FileSystemXmlApplicationContext - Refreshing org.springframework.context.support.FileSystemXmlApplicationContext@112e7f7: display name [org.springframework.context.support.FileSystemXmlApplicationContext@112e7f7]; startup date [Wed Oct 03 21:43:43 GMT 2012]; root of context hierarchy
    [INFO] [main] org.springframework.context.support.FileSystemXmlApplicationContext - Bean factory for application context [org.springframework.context.support.FileSystemXmlApplicationContext@112e7f7]: org.springframework.beans.factory.support.DefaultListableBeanFactory@f01771
    [INFO] [main] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from class path resource [red5.properties]
    [INFO] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@f01771: defining beans [placeholderConfig,red5.server,jmxFactory,jmxAgent,serializer,deserializer,statusObjectService,rtmpCodecFactory,remotingCodecFactory,streamableFileFactory,filePersistenceThread,sharedObjectService,streamService,providerService,consumerService,BWControlService,schedulingService,warDeployService,remotingPool,remotingClient,object.cache,keyframe.cache,flv.impl,flvreader.impl,mp4reader.impl,mp3reader.impl,org.springframework.beans.factory.config.MethodInvokingFactoryBean#0,org.springframework.beans.factory.config.MethodInvokingFactoryBean#1,streamExecutor,playlistSubscriberStream,clientBroadcastStream]; root of factory hierarchy
    [INFO] [main] org.red5.server.service.WarDeployer - War deployer service created
    [INFO] [main] org.springframework.context.support.FileSystemXmlApplicationContext - Refreshing org.springframework.context.support.FileSystemXmlApplicationContext@e80740: display name [org.springframework.context.support.FileSystemXmlApplicationContext@e80740]; startup date [Wed Oct 03 21:43:43 GMT 2012]; parent: red5.common
    [INFO] [main] org.springframework.context.support.FileSystemXmlApplicationContext - Bean factory for application context [org.springframework.context.support.FileSystemXmlApplicationContext@e80740]: org.springframework.beans.factory.support.DefaultListableBeanFactory@114b17
    [INFO] [main] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from class path resource [red5.properties]
    [INFO] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@114b17: defining beans [customEditorConfigurer,placeholderConfig,rtmpMinaConnManager,rtmpHandler,rtmpMinaIoHandler,rtmpTransport,rtmpMinaConnection,rtmptConnManager,rtmptHandler,rtmptServlet,rtmptConnection,rtmpt.server,rtmps.server]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@f01771
    [INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - RTMP Mina Transport bound to /1***adresse_ip***:1935
    [INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - RTMP Mina Transport Settings
    [INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - IO Threads: 8
    [INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - Event Threads - core: 16, max: 64, queue: 0, keepalive: 60
    [INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - TCP No Delay: true
    [INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - Receive Buffer Size: 65536
    [INFO] [main] org.red5.server.net.rtmp.RTMPMinaTransport - Send Buffer Size: 271360
    [INFO] [main] org.springframework.context.support.FileSystemXmlApplicationContext - Refreshing org.springframework.context.support.FileSystemXmlApplicationContext@1d9e279: display name [org.springframework.context.support.FileSystemXmlApplicationContext@1d9e279]; startup date [Wed Oct 03 21:43:43 GMT 2012]; parent: red5.common
    [INFO] [main] org.springframework.context.support.FileSystemXmlApplicationContext - Bean factory for application context [org.springframework.context.support.FileSystemXmlApplicationContext@1d9e279]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1f68272
    [INFO] [main] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1f68272: defining beans [global.clientRegistry,global.serviceInvoker,global.mappingStrategy,global.context,global.handler,global.scope,red5.scopeResolver]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@f01771
    [INFO] [main] org.red5.server.tomcat.TomcatLoader - Setting connector: org.apache.catalina.connector.Connector
    [INFO] [main] org.red5.server.tomcat.TomcatLoader - Loading tomcat context
    [INFO] [main] org.red5.server.tomcat.TomcatLoader - Server root: /usr/local/0_9rc1/dist
    [INFO] [main] org.red5.server.tomcat.TomcatLoader - Config root: /usr/local/0_9rc1/dist/conf
    [INFO] [main] org.red5.server.tomcat.TomcatLoader - Application root: /usr/local/0_9rc1/dist/webapps
    [INFO] [main] org.red5.server.tomcat.TomcatLoader - Starting Tomcat servlet engine
    [INFO] [main] org.apache.catalina.startup.Embedded - Starting tomcat server
    [INFO] [main] org.apache.catalina.core.StandardEngine - Starting Servlet Engine: Apache Tomcat/6.0-snapshot
    [INFO] [main] org.apache.coyote.http11.Http11Protocol - Initializing Coyote HTTP/1.1 on http-5080
    [INFO] [main] org.apache.coyote.http11.Http11Protocol - Starting Coyote HTTP/1.1 on http-5080
    [INFO] [Launcher:/chatroulette] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from ServletContext resource [/WEB-INF/red5-web.properties]
    [INFO] [main] org.red5.server.tomcat.TomcatLoader - Setting connector: org.apache.catalina.connector.Connector
    [INFO] [main] org.apache.catalina.core.StandardEngine - Starting Servlet Engine: Apache Tomcat/6.0-snapshot
    [INFO] [Launcher:/installer] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from ServletContext resource [/WEB-INF/red5-web.properties]
    [INFO] [Launcher:/chatroulette] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@a50da4: defining beans [placeholderConfig,web.context,web.scope,web.handler]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@1f68272
    [INFO] [Launcher:/] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from ServletContext resource [/WEB-INF/red5-web.properties]
    [INFO] [Launcher:/installer] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@e931d9: defining beans [placeholderConfig,web.context,web.scope,web.handler,installer.service]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@1f68272
    [INFO] [Launcher:/] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@151ac10: defining beans [placeholderConfig,web.context,web.scope]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@1f68272
    [INFO] [Launcher:/installer] org.red5.server.service.Installer - Installer service created
    [INFO] [main] org.apache.coyote.http11.Http11NioProtocol - Initializing Coyote HTTP/1.1 on http-8088
    [INFO] [main] org.apache.coyote.http11.Http11NioProtocol - Starting Coyote HTTP/1.1 on http-8088
    [INFO] [main] org.red5.server.tomcat.TomcatLoader - Setting connector: org.apache.catalina.connector.Connector
    [INFO] [main] org.red5.server.net.rtmps.TomcatRTMPSLoader - Loading RTMPS context
    [INFO] [main] org.apache.catalina.core.StandardEngine - Starting Servlet Engine: Apache Tomcat/6.0-snapshot
    [INFO] [main] org.red5.server.net.rtmps.TomcatRTMPSLoader - Connector info: org.apache.catalina.connector.Connector/2.1
    [INFO] [main] org.apache.coyote.http11.Http11NioProtocol - Initializing Coyote HTTP/1.1 on http-8443
    [INFO] [main] org.red5.server.net.rtmps.TomcatRTMPSLoader - Starting RTMPS engine
    [INFO] [main] org.apache.coyote.http11.Http11NioProtocol - Starting Coyote HTTP/1.1 on http-8443
    Bootstrap complete
    [INFO] [Launcher:/chat] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from ServletContext resource [/WEB-INF/red5-web.properties]
    [INFO] [Launcher:/chat] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@157b39f: defining beans [placeholderConfig,web.context,web.scope,web.handler]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@1f68272
    [INFO] [Launcher:/live] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from ServletContext resource [/WEB-INF/red5-web.properties]
    [INFO] [Launcher:/live] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1f11e0f: defining beans [placeholderConfig,web.context,web.scope,web.handler]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@1f68272
    [INFO] [Launcher:/vod] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from ServletContext resource [/WEB-INF/red5-web.properties]
    [INFO] [Launcher:/vod] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@169df00: defining beans [placeholderConfig,web.context,web.scope,web.handler]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@1f68272
    Et avant de fermer la ligne suivante s'ajoute (si je met -Xrs en option sur le Java);

  4. #4
    Modérateur
    Avatar de paissad
    Homme Profil pro
    Ingénieur de développement (Java/JEE/Eclipse RCP,EMF & webMethods)
    Inscrit en
    Avril 2006
    Messages
    1 043
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 38
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Ingénieur de développement (Java/JEE/Eclipse RCP,EMF & webMethods)
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2006
    Messages : 1 043
    Points : 2 560
    Points
    2 560
    Par défaut
    est-ce que tu as ajouté ce que je t'ai demandé avant la ligne
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    export JAVA_OPTS="$LOGGING_OPTS $SECURITY_OPTS $JAVA_OPTS"
    Nous n'héritons pas de la terre de nos parents, nous l'empruntons à nos enfants.
    Le chat du site est aussi ici pour aider. Ne pas hésiter à visiter !

  5. #5
    Membre à l'essai
    Homme Profil pro
    Développeur Web
    Inscrit en
    Avril 2012
    Messages
    8
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Avril 2012
    Messages : 8
    Points : 10
    Points
    10
    Par défaut
    Si je met la valeur à 512, je dépasse mes 768MB alloué, je laisse rouler pourtant sur le burst et sa plante encore.

    Mais je crois pas sa règle la chose, car je roulai exactement le même serveur sur une configuration simalire sur un autre VPS et tous marchait, mais j'avais installé le tous voila déjà plus de six mois. Il était up plus de 60 jours sans arrêt avec un roulement avec 128m en max et prennait dans les 500MB en mémoire.

  6. #6
    Membre à l'essai
    Homme Profil pro
    Développeur Web
    Inscrit en
    Avril 2012
    Messages
    8
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Belgique

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Avril 2012
    Messages : 8
    Points : 10
    Points
    10
    Par défaut
    Le problème vien du fournisseur de VPS, il est de maivaise qualité. J,ai pris un autre VPS et configuré de la même manière et tous marche numéro 1.

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Un menu qui fait tout par lui même
    Par valda117 dans le forum C++
    Réponses: 2
    Dernier message: 08/12/2013, 19h59
  2. Réponses: 4
    Dernier message: 15/04/2011, 19h46
  3. [XL-2003] Code qui s'arrête de lui même en pleine execution
    Par Many31 dans le forum Macros et VBA Excel
    Réponses: 3
    Dernier message: 30/07/2009, 15h38
  4. Service qui doit se contrôler lui-même
    Par gderenne dans le forum VB.NET
    Réponses: 5
    Dernier message: 29/01/2009, 16h56
  5. Réponses: 2
    Dernier message: 10/03/2004, 18h52

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo