Je nach Größe des ThreadPools (in produktiven Systemen können das mehrere Hundert Threads sein) und der Größe der Objekte in der ThreadLocal Variable, kann das zu Problemen führen.
Depending on the number of threads in the pool (>100 threads are normal in productive environements) and the size of the object in the ThreadLocal variable, critical memory problems can occur.
Wird im Servlet oder der aus dem Servlet aufgerufenen Java Klassen eine ThreadLocal Variable genutzt, werden diese mit dem aktuellen Thread assoziiert.
If the servlet or its called Java classes are using ThreadLocal variables, these variables are associated with the current worker thread.
Der hohe Speicherverbrauch ist auf eine ThreadLocal Variable zurückzuführen, die eine DOMParser inkl. geparstem Dokument referenziert - insgesamt mehr als 14MB groß.
The high memory consumption is the result of a ThreadLocal variable that references a DOMParser and its parsed document with a total size of 14MB.
Autres résultats
ThreadLocal Variablen werden in Java benutzt, um Variablen an einen Thread zu binden - jeder Thread bekommt eine eigene, unabhängige Instanz dieser Variable zugewiesen.
ThreadLocal variables are used in Java to bind a variable to the current Thread - each thread will have its own, independend instance of that variable.
Das Beispiel zeigt, dass man vorsichtig sein muss, wenn man ThreadLocal Variablen innerhalb eines ApplicationServer verwendet (vor allem wenn man Application Server Hersteller ist).
This exampe shows that you have to be careful if you use ThreadLocal inside an application server.
Sind beispielsweise 200 Threads im ThreadPool aktiv und die ThreadLocal Varibale ist 5MB groß, belegen diese Variablen im schlimmsten Fall bereits 1GB Heap Speicher.
If for example 200 threads are configured for the thread pool and the ThreadLocal variables are 5MB big, this could result in 1 GB of heaps space occupied by just these ThreadLocal variables.
Contenu potentiellement sensible ou inapproprié
Les exemples vous aident à traduire le mot ou l’expression cherchés dans des contextes variés. Ils ne sont ni sélectionnés ni validés par nous et peuvent contenir des mots ou des idées inappropriés. Signalez des exemples à modifier ou à retirer. Les traductions potentiellement sensibles, inappropriées ou familières sont généralement marquées de rouge ou d’orange.
Aucun résultat pour cette recherche.
Synonymes et analogies de "ThreadLocal Variable" en allemand