garbage-collection

How fast is the jscript garbage collector? Three.js Matrix Rotations

主宰稳场 提交于 2019-12-23 04:35:29
问题 I am using these two functions in order to rotate my objects in my three.js scenes // Rotate an object around an arbitrary axis in object space function rotateAroundObjectAxis(object, axis, radians) { rotationMatrix = new THREE.Matrix4(); rotationMatrix.makeRotationAxis(axis.normalize(), radians); object.matrix.multiplySelf(rotationMatrix); // post-multiply object.rotation.getRotationFromMatrix(object.matrix, object.scale); delete rotationMatrix; } // Rotate an object around an arbitrary axis

Compiling Mono from Visual Studio with sgen support

假装没事ソ 提交于 2019-12-23 04:29:49
问题 I have a Mono binary obtained from a build with Visual Studio. The option --gc=sgen used to enable sgen garbage collector is not available: Error: --gc=<NAME> option not supported on this platform. How to enable this option ? Is there any define ? 回答1: The sgen GC will be available on windows starting from the next mono releases, 2.11/2.12 (though not necessarily in the VS build). 来源: https://stackoverflow.com/questions/8214594/compiling-mono-from-visual-studio-with-sgen-support

Java: garbage collection for RMI target object?

為{幸葍}努か 提交于 2019-12-23 04:11:56
问题 While getting my hands dirty with RMI, I got a java.rmi.NoSuchObjectException exception, which led me to this question: java.rmi.NoSuchObjectException: no such object in table but my question is different . I'm creating the impl object in my main method and hence in the main thread. If I do this: FooImpl fi = new FooImpl(); foo = (Foo) UnicastRemoteObject.exportObject(fi, 0); things work fine. If I do this: foo = (Foo) UnicastRemoteObject.exportObject(new FooImpl(), 0); I see that FooImpl

Frequent full GC with empty heap

前提是你 提交于 2019-12-23 03:46:10
问题 I've got a GC log file that shows frequent full GC when the heap is empty (every 30 mins initially, then 20, 10, 5 up to few events a minute. At some point, though, I can see a sudden increase in the heap usage (I'd imagine at the moment when users start connecting to my application) and full GC events start to take place less freqently. I can't think of a reason why this may happen. I'm using Oracle Vm 1.6, and my startup script is: java -XX:+HeapDumpOnOutOfMemoryError \ -Xmx7500m \ -XX

Chrome HTML Page Memory Usage

元气小坏坏 提交于 2019-12-23 03:26:51
问题 I have a page which I loaded in Chrome with Timeline started, after 5th second, you can see three spikes. After 7th second page is loaded and stabilized. Looks like chrome has allocated memory but didnt garbage collect them. On nearly 11th second (with a black mark on Image 1), I press Garbage Collect on timeline and I see all memory released down to 3 MB. After memory comes down to 3MB, my page works correctly. My target is to find memory leaks (if there are any). But after garbage collect,

How to change Garbage collection thread's priority?

*爱你&永不变心* 提交于 2019-12-23 02:52:34
问题 This question is duplicate of Is it possible to change the priority of garbage Collector thread? It is an old question and things might have changed a lot since then. Also it doesn't clarifies everything. Is it possible to change GC thread priority? I have seen thread dumps with different GC thread priority. How does that happen if we cannot change it? Also, I understand that High frequency trading platforms want to keep GC thread priority very low so that main threads run most of the time

How to prevent malfunction (memory leak) by disposing static methods?

点点圈 提交于 2019-12-23 02:45:16
问题 I am using ASP.NET 4.0. From last few weeks, few users are complaining that the application starts malfunctioning. The GridView suddenly starts showing contents of a DropDown control that the same user or another concurrent user might have accessed at any point of time in that day. Similarly, DropDown controls may get populated by RowID of the any old result-set instead of the actual items. I came across an article: Users seeing other users data in ASP.NET where the author discusses about

Reduce Memory Usage With WeakHashMap

拥有回忆 提交于 2019-12-23 02:38:23
问题 In the Javadoc of WeakHashMap.html, it said "Each key object in a WeakHashMap is stored indirectly as the referent of a weak reference. Therefore a key will automatically be removed only after the weak references to it, both inside and outside of the map, have been cleared by the garbage collector." And then Note that a value object may refer indirectly to its key via the WeakHashMap itself; that is, a value object may strongly refer to some other key object whose associated value object, in

java.lang.OutOfMemoryError: GC overhead limit exceeded when loading an xlsx file

天大地大妈咪最大 提交于 2019-12-23 02:32:54
问题 I understand what the error means, that my program is consuming too much memory and for a long period of the time it is not recovering. My program is just reading 6,2Mb xlsx file when the memory issue occures. When I try to monitor the program, it very quickly reaches 1,2Gb in memory consumption and then it crashes. How can it reach 1,2Gb when reading 6,2Mb file? Is there a way to open the file in chunks? So that it doesn't have to be loaded to the memory? Or any other solution? Exactly this

What is the life span of a field in a static class?

佐手、 提交于 2019-12-23 01:58:20
问题 I have a simple web service, in it i have a static class which has a static collection to remember alive tokens. I just want to make sure that the token collection lives until the next iisreset or the application pool recycles. And what is the difference between remembering states in Application bag and static class? Thanks, 回答1: Microsoft (says): ASP.NET includes application state primarily for compatibility with classic ASP so that it is easier to migrate existing applications to ASP.NET.