out-of-memory

Failed to allocate memory (No MemoryError) in Ruby?

喜夏-厌秋 提交于 2019-12-10 13:14:27
问题 I wrote a simple script that is supposed to read an entire directory and then parse the HTML data into normal script by getting rid off the HTML tags and then write it into one file. I have 8GB memory and also plenty of available virtual memory. When I am doing this I have more than 5GB RAM available. The largest file in the directory is 3.8 GB. The script is file_count = 1 File.open("allscraped.txt", 'w') do |out1| for file_name in Dir["allParts/*.dat"] do puts "#{file_name}#:#{file_count}"

Out of Memory Exception When Using HttpWebRequest to Stream Large File

不羁岁月 提交于 2019-12-10 12:58:57
问题 I get an Out of Memory Exception when using Http.Put of a large file. I am using an asynchronous model as shown in the code. I am trying to send 8K blocks of data to a Windows 2008 R2 server. The exception consistently occurs when I attempt to write a block of data that exceeds 536,868,864 bytes. The exception occurs on the requestStream.Write method in the code snippet below. Looking for reasons why? Note: Smaller files are PUT OK. Logic also works if I write to a local FileStream. Running

Keras clear all gpu memory

三世轮回 提交于 2019-12-10 11:31:58
问题 I'm doing something like this: for ai in ai_generator: ai.fit(ecc...) ai_generator is a generator that instantiate a model with different configuration. My problem is gpu memory overflow, and K.clear_session() don't work because it throw this ValueError: Tensor("conv2d_1/kernel:0", shape=(3, 3, 1, 1), dtype=float32_ref) must be from the same graph as Tensor("concat:0", shape=(?, 38, 300, 1), dtype=float32). How can I clear keras memory as new? I need only performances of fit method, I can

MVVMCross Nested Recyclerview Out of Memory Issue

て烟熏妆下的殇ゞ 提交于 2019-12-10 11:19:24
问题 I have tried to create nested recyclerview in combination with the mvvmcross-framework which actually worked quite easily, but now I'm getting out of memory exceptions. Scenario I have a list of around 3000 entries with complex and long names, which are divided by 8 categories. The user can select the entries via a checkbox to assign them to a task later on. Even if it might sound like there are too many entries, it is actually quite easily to navigate through them, if the user has some

Android - How to work around a “no space left on device” error

会有一股神秘感。 提交于 2019-12-10 11:18:53
问题 So my latest app runs into this problem where it complains in the logcat that theres no room left on the device to save files but that is definitely not the case as I can close my app open the stock camera and take a picture. How has everybody else dealt with this problem. Edit: The error occurs in this method private void writeFile(Bitmap bmp, File f) { FileOutputStream out = null; try { out = new FileOutputStream(f); bmp.compress(Bitmap.CompressFormat.PNG, 80, out);//<---error here } catch

Android googlemap Out of memory

大城市里の小女人 提交于 2019-12-10 11:18:44
问题 I made an android application with googlemap api, and draw some 16x16 png (about 200 count) on overlay. When I move or zoom on/in mapview, "out of memory" error occurs very often. I also used the googlemap appication in my htc itself. Seams that it uses about 14+MB memmory, and never happens "out of memory". How to save memmory usage in a googlemap api, or how to enlarge android api memmory limit. Thanks a lot! 回答1: My own solution: Catching OutOfMemoryError when zoomin/zoomout, will prevent

OutOfMemoryError: bitmap size exceeds VM budget

假如想象 提交于 2019-12-10 11:15:23
问题 Sorry it seems like a repeated question, BUT I think I don't qualify to any of the recommendations already posted. I've a Gallery of maximum 20 images on my application. After playing a while flinging back and forth I'm getting OutOfMemoryError. The strange thing is that I don't hold any static references, and I've searched for possible memory leaks I can assure that I've not found one so far. Anyway, 20 images (PNG of 100KB on average) doesn't be like that much. And I've implemented a view

How to Debug “Fatal error: Out of memory (allocated XXX) (tried to allocate XXXXX bytes)”? [closed]

此生再无相见时 提交于 2019-12-10 10:53:53
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 8 years ago . Looking through StackOverflow I realized out-of-memory-errors are a common problem. As suggested by others it can under some circumstances be managed by increasing the memory limit in the php.ini.But often this

Java needed memory for new thread

淺唱寂寞╮ 提交于 2019-12-10 10:29:57
问题 I have an application which massively creates threads. As result I get an OutOfMemoryError . My idea is to wait until there is enough free space to create the next Thread . But therefore I need to know how many memory I need to create a thread and if this amount of memory is available. Is there a way to get the amount of memory a thread needs? And how can I determine if this amount of memory is available? What I've already tried: for (int i = 0; i < links.size(); i++) { while(Runtime

Memory Efficient Agglomerative Clustering with Linkage in Python

落爺英雄遲暮 提交于 2019-12-10 10:18:05
问题 I want to cluster 2d points (latitude/longitude) on a map. The number of points is 400K so the input matrix would be 400k x 2. When I run scikit-learn's Agglomerative Clustering I run out of memory and my memory is about 500GB. class sklearn.cluster.AgglomerativeClustering(n_clusters=2, affinity='euclidean', memory=Memory(cachedir=None), connectivity=None, n_components=None, compute_full_tree='auto', linkage='ward', pooling_func=<function mean at 0x2b8085912398>)[source] I also tried the