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

Java Discussion :

Erreur OutOfMemory incomprise


Sujet :

Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre éclairé
    Profil pro
    Inscrit en
    Juillet 2006
    Messages
    676
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juillet 2006
    Messages : 676
    Par défaut Erreur OutOfMemory incomprise
    Bonjour,

    J'ai souvent cette erreur qui survient quand je suis sur jfreechart dans un graphique en m'y déplaçant :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    #
    # There is insufficient memory for the Java Runtime Environment to continue.
    # Native memory allocation (malloc) failed to allocate 140 bytes for CHeapObj-new
    # An error report file with more information is saved as:
    # J:\Mirus\hs_err_pid4940.log
    java.lang.OutOfMemoryError
    java.lang.OutOfMemoryError
    Le rapport d'erreur que ça écrit est le suivant :
    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
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    #
    # There is insufficient memory for the Java Runtime Environment to continue.
    # Native memory allocation (malloc) failed to allocate 140 bytes for CHeapObj-new
    # Possible reasons:
    #   The system is out of physical RAM or swap space
    #   In 32 bit mode, the process size limit was hit
    # Possible solutions:
    #   Reduce memory load on the system
    #   Increase physical memory or swap space
    #   Check if swap backing store is full
    #   Use 64 bit Java on a 64 bit OS
    #   Decrease Java heap size (-Xmx/-Xms)
    #   Decrease number of Java threads
    #   Decrease Java thread stack sizes (-Xss)
    #   Set larger code cache with -XX:ReservedCodeCacheSize=
    # This output file may be truncated or incomplete.
    #
    #  Out of Memory Error (memory/allocation.inline.hpp:44), pid=4940, tid=4344
    #
    # JRE version: 6.0_26-b03
    # Java VM: Java HotSpot(TM) Client VM (20.1-b02 mixed mode, sharing windows-x86 )
     
    ---------------  T H R E A D  ---------------
     
    Current thread (0x06cac000):  JavaThread "AWT-EventQueue-0" [_thread_in_vm, id=4344, stack(0x08e50000,0x08ea0000)]
     
    Stack: [0x08e50000,0x08ea0000],  sp=0x08e9f3b8,  free space=316k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V  [jvm.dll+0x13379a]
    V  [jvm.dll+0x12e78c]
    V  [jvm.dll+0x53b19]
    V  [jvm.dll+0x363f3]
    V  [jvm.dll+0x2078b0]
    V  [jvm.dll+0x207943]
    v  ~RuntimeStub::handle_exception_nofpu Runtime1 stub
    J  javax.swing.RepaintManager.paintDirtyRegions()V
    V  [jvm.dll+0xfae4b]
    V  [jvm.dll+0x18c531]
    V  [jvm.dll+0xfaecd]
    V  [jvm.dll+0xbb734]
    C  [java.dll+0x102f]
    J  java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V
    j  java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+11
    j  java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
    j  java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
    j  java.awt.EventDispatchThread.run()V+9
    v  ~StubRoutines::call_stub
    V  [jvm.dll+0xfae4b]
    V  [jvm.dll+0x18c531]
    V  [jvm.dll+0xfaff1]
    V  [jvm.dll+0xfb04b]
    V  [jvm.dll+0xb56b9]
    V  [jvm.dll+0x1190d4]
    V  [jvm.dll+0x1411ac]
    C  [msvcr71.dll+0x9565]
    C  [kernel32.dll+0x1339a]
    C  [ntdll.dll+0x39ed2]
    C  [ntdll.dll+0x39ea5]
     
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    v  ~RuntimeStub::handle_exception_nofpu Runtime1 stub
    J  javax.swing.RepaintManager.paintDirtyRegions()V
    J  javax.swing.RepaintManager.seqPaintDirtyRegions()V
    J  javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run()V
    J  java.awt.event.InvocationEvent.dispatch()V
    J  java.awt.EventQueue.dispatchEventImpl(Ljava/awt/AWTEvent;Ljava/lang/Object;)V
    J  java.awt.EventQueue$1.run()Ljava/lang/Object;
    v  ~StubRoutines::call_stub
    J  java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;
    J  java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V
    J  java.awt.EventDispatchThread.pumpOneEventForFilters(I)Z
    j  java.awt.EventDispatchThread.pumpEventsForFilter(ILjava/awt/Conditional;Ljava/awt/EventFilter;)V+30
    j  java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+11
    j  java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
    j  java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
    j  java.awt.EventDispatchThread.run()V+9
    v  ~StubRoutines::call_stub
     
    ---------------  P R O C E S S  ---------------
     
    Java Threads: ( => current thread )
      0x09f6c400 JavaThread "DestroyJavaVM" [_thread_blocked, id=2312, stack(0x003b0000,0x00400000)]
      0x0a06b400 JavaThread "Thread-5" [_thread_blocked, id=4548, stack(0x0a540000,0x0a590000)]
      0x09f19000 JavaThread "TimerQueue" daemon [_thread_blocked, id=2380, stack(0x0a320000,0x0a370000)]
      0x06cb1400 JavaThread "D3D Screen Updater" daemon [_thread_blocked, id=5044, stack(0x093a0000,0x093f0000)]
    =>0x06cac000 JavaThread "AWT-EventQueue-0" [_thread_in_vm, id=4344, stack(0x08e50000,0x08ea0000)]
      0x0051bc00 JavaThread "AWT-Windows" daemon [_thread_in_native, id=2360, stack(0x04e50000,0x04ea0000)]
      0x0051b400 JavaThread "AWT-Shutdown" [_thread_blocked, id=1560, stack(0x04d60000,0x04db0000)]
      0x00516c00 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=2700, stack(0x04ac0000,0x04b10000)]
      0x004c2400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=4360, stack(0x04980000,0x049d0000)]
      0x004be000 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=4468, stack(0x048f0000,0x04940000)]
      0x004bb400 JavaThread "Attach Listener" daemon [_thread_blocked, id=3964, stack(0x04860000,0x048b0000)]
      0x004b9000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=776, stack(0x047d0000,0x04820000)]
      0x004aac00 JavaThread "Finalizer" daemon [_thread_blocked, id=1060, stack(0x04740000,0x04790000)]
      0x004a8800 JavaThread "Reference Handler" daemon [_thread_blocked, id=4964, stack(0x046b0000,0x04700000)]
     
    Other Threads:
      0x0046cc00 VMThread [stack: 0x04620000,0x04670000] [id=1920]
      0x004cb400 WatcherThread [stack: 0x04a10000,0x04a60000] [id=4580]
     
    VM state:not at safepoint (normal execution)
     
    VM Mutex/Monitor currently owned by a thread:  ([mutex/lock_event])
    [0x001d73a8] ExceptionCache_lock - owner thread: 0x06cac000
     
    Heap
     def new generation   total 11200K, used 6668K [0x24530000, 0x25150000, 0x29a80000)
      eden space 9984K,  64% used [0x24530000, 0x24b7b368, 0x24ef0000)
      from space 1216K,  18% used [0x24ef0000, 0x24f27d00, 0x25020000)
      to   space 1216K,   0% used [0x25020000, 0x25020000, 0x25150000)
     tenured generation   total 24676K, used 13746K [0x29a80000, 0x2b299000, 0x34530000)
       the space 24676K,  55% used [0x29a80000, 0x2a7ec970, 0x2a7eca00, 0x2b299000)
     compacting perm gen  total 12288K, used 4861K [0x34530000, 0x35130000, 0x38530000)
       the space 12288K,  39% used [0x34530000, 0x349ef448, 0x349ef600, 0x35130000)
        ro space 10240K,  51% used [0x38530000, 0x38a5dff8, 0x38a5e000, 0x38f30000)
        rw space 12288K,  55% used [0x38f30000, 0x395cc208, 0x395cc400, 0x39b30000)
     
    Code Cache  [0x02420000, 0x027f0000, 0x04420000)
     total_blobs=2237 nmethods=1971 adapters=200 free_code_cache=29588672 largest_free_block=320
     
    Dynamic libraries:
    0x00400000 - 0x00424000 	C:\Program Files (x86)\Java\jre6\bin\javaw.exe
    0x77470000 - 0x775f0000 	C:\Windows\SysWOW64\ntdll.dll
    0x75390000 - 0x754a0000 	C:\Windows\syswow64\kernel32.dll
    0x76340000 - 0x76386000 	C:\Windows\syswow64\KERNELBASE.dll
    0x752f0000 - 0x75390000 	C:\Windows\syswow64\ADVAPI32.dll
    0x74ee0000 - 0x74f8c000 	C:\Windows\syswow64\msvcrt.dll
    0x76540000 - 0x76559000 	C:\Windows\SysWOW64\sechost.dll
    0x754a0000 - 0x75590000 	C:\Windows\syswow64\RPCRT4.dll
    0x74b60000 - 0x74bc0000 	C:\Windows\syswow64\SspiCli.dll
    0x74b50000 - 0x74b5c000 	C:\Windows\syswow64\CRYPTBASE.dll
    0x76240000 - 0x76340000 	C:\Windows\syswow64\USER32.dll
    0x74bd0000 - 0x74c60000 	C:\Windows\syswow64\GDI32.dll
    0x77440000 - 0x7744a000 	C:\Windows\syswow64\LPK.dll
    0x765e0000 - 0x7667d000 	C:\Windows\syswow64\USP10.dll
    0x768f0000 - 0x76950000 	C:\Windows\system32\IMM32.DLL
    0x76680000 - 0x7674c000 	C:\Windows\syswow64\MSCTF.dll
    0x7c340000 - 0x7c396000 	C:\Program Files (x86)\Java\jre6\bin\msvcr71.dll
    0x6d7f0000 - 0x6da9f000 	C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll
    0x72bd0000 - 0x72c02000 	C:\Windows\system32\WINMM.dll
    0x724c0000 - 0x7250c000 	C:\Windows\system32\apphelp.dll
    0x6d7a0000 - 0x6d7ac000 	C:\Program Files (x86)\Java\jre6\bin\verify.dll
    0x6d320000 - 0x6d33f000 	C:\Program Files (x86)\Java\jre6\bin\java.dll
    0x74bc0000 - 0x74bc5000 	C:\Windows\system32\PSAPI.DLL
    0x6d7e0000 - 0x6d7ef000 	C:\Program Files (x86)\Java\jre6\bin\zip.dll
    0x6d000000 - 0x6d14b000 	C:\Program Files (x86)\Java\jre6\bin\awt.dll
    0x748b0000 - 0x74901000 	C:\Windows\system32\WINSPOOL.DRV
    0x76790000 - 0x768ec000 	C:\Windows\syswow64\ole32.dll
    0x721c0000 - 0x7235e000 	C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\COMCTL32.dll
    0x76950000 - 0x769a7000 	C:\Windows\syswow64\SHLWAPI.dll
    0x74910000 - 0x74994000 	C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.17514_none_ec83dffa859149af\comctl32.dll
    0x72690000 - 0x726a3000 	C:\Windows\system32\DWMAPI.DLL
    0x72610000 - 0x72690000 	C:\Windows\system32\uxtheme.dll
    0x6d230000 - 0x6d27f000 	C:\Program Files (x86)\Java\jre6\bin\fontmanager.dll
    0x70550000 - 0x70713000 	C:\Windows\system32\d3d9.dll
    0x749a0000 - 0x749a9000 	C:\Windows\system32\VERSION.dll
    0x70540000 - 0x70546000 	C:\Windows\system32\d3d8thk.dll
    0x6e610000 - 0x6e696000 	C:\Windows\system32\aticfx32.dll
    0x73700000 - 0x7370a000 	C:\Windows\system32\atiu9pag.dll
    0x63a30000 - 0x63e0e000 	C:\Windows\system32\atiumdag.dll
    0x66740000 - 0x66a93000 	C:\Windows\system32\atiumdva.dll
    0x755f0000 - 0x7623a000 	C:\Windows\system32\shell32.dll
    0x6d600000 - 0x6d613000 	C:\Program Files (x86)\Java\jre6\bin\net.dll
    0x76750000 - 0x76785000 	C:\Windows\syswow64\WS2_32.dll
    0x76b70000 - 0x76b76000 	C:\Windows\syswow64\NSI.dll
    0x72f60000 - 0x72f9c000 	C:\Windows\system32\mswsock.dll
    0x72ad0000 - 0x72ad6000 	C:\Windows\System32\wship6.dll
    0x6d620000 - 0x6d629000 	C:\Program Files (x86)\Java\jre6\bin\nio.dll
    0x72ef0000 - 0x72ef5000 	C:\Windows\System32\wshtcpip.dll
    0x72fa0000 - 0x72fc7000 	C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live\WLIDNSP.DLL
    0x72f10000 - 0x72f54000 	C:\Windows\system32\DNSAPI.dll
    0x72e50000 - 0x72e6c000 	C:\Windows\system32\IPHLPAPI.DLL
    0x72e40000 - 0x72e47000 	C:\Windows\system32\WINNSI.DLL
    0x72380000 - 0x72386000 	C:\Windows\system32\rasadhlp.dll
    0x72390000 - 0x723c8000 	C:\Windows\System32\fwpuclnt.dll
    0x6d1a0000 - 0x6d1c3000 	C:\Program Files (x86)\Java\jre6\bin\dcpr.dll
    0x75140000 - 0x751cf000 	C:\Windows\syswow64\OLEAUT32.DLL
     
    VM Arguments:
    jvm_args: -Dfile.encoding=Cp1252 
    java_command: Fenêtre
    Launcher Type: SUN_STANDARD
     
    Environment Variables:
    CLASSPATH=.;C:\Program Files (x86)\Java\jre6\lib\ext\QTJava.zip
    PATH=C:/Program Files (x86)/Java/jre6/bin/client;C:/Program Files (x86)/Java/jre6/bin;C:\Program Files\Logitech\SetPoint;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Perl\site\bin;C:\Perl\bin;C:\Perl\bin\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Pinnacle\Shared Files\;C:\Program Files (x86)\Windows Live\Shared
    USERNAME=xav
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD
     
     
     
    ---------------  S Y S T E M  ---------------
     
    OS: Windows 7 Build 7601 Service Pack 1
     
    CPU:total 4 (4 cores per cpu, 1 threads per core) family 16 model 4 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, popcnt, mmxext, 3dnow, 3dnowext, lzcnt, sse4a
     
    Memory: 4k page, physical 4191736k(1074820k free), swap 8381624k(3885328k free)
     
    vm_info: Java HotSpot(TM) Client VM (20.1-b02) for windows-x86 JRE (1.6.0_26-b03), built on May  4 2011 00:50:59 by "java_re" with MS VC++ 7.1 (VS2003)
     
    time: Thu Aug 18 22:51:36 2011
    elapsed time: 67 seconds
    Je ne parviens vraiment pas à comprendre d'où ça vient

    Merci pour votre aide

  2. #2
    Membre Expert
    Inscrit en
    Mai 2006
    Messages
    1 364
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 1 364
    Par défaut
    Lorsqu'on lance une application Java, la machine virtuelle utilise une certaine quantité de memoire. Si celle-ci est saturée, on a un Out of memory !
    Deux raisons : un probleme d'architecture (typiquement une boucle infinie qui instancie des objets) ou bien l'utilisation de trop de mémoire.

    Dans le 1er cas, il faut corriger. Dans le 2e, il faut augmenter la mémoire allouée à la machine virtuelle.Pour ca, il faut ajouter le parametre -Xmx XXXXM

    Avec XXXX la taille memoire que tu veux utiliser => Par exemple "-Xmx 1024M"

  3. #3
    Expert éminent
    Avatar de tchize_
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    25 482
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 46
    Localisation : Belgique

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 482
    Par défaut
    Ce n'est pas le problème ici. Ici il y a assez de mémoire virtuelle dans la jvm, mais il n'y a pas assez de mémoire dans le système d'exploitation. Par exemple, comme si on a dit à java d'utiliser jusqu'à 1G de mémoire alors que l'OS ne peux fournir de 500M.

    C'est la mémoire physique ou la swap de la machine qu'il faut augmenter.

Discussions similaires

  1. PLS-00103 erreur incomprise sur PL/SQL developer
    Par balkis dans le forum PL/SQL
    Réponses: 5
    Dernier message: 01/09/2010, 16h03
  2. ASP.net 1.1 : Erreur OutOfMemory
    Par morgiou dans le forum ASP.NET
    Réponses: 1
    Dernier message: 08/12/2008, 13h53
  3. Serialization erreur OutOfMemory
    Par fanzyride dans le forum Général Java
    Réponses: 6
    Dernier message: 29/05/2008, 11h26
  4. [FPDF] erreur incomprise
    Par oceane751 dans le forum Bibliothèques et frameworks
    Réponses: 1
    Dernier message: 17/01/2007, 00h20
  5. Erreur incomprise avec DBI et perl
    Par duedos dans le forum SGBD
    Réponses: 3
    Dernier message: 04/07/2006, 11h43

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