out-of-memory

String split out of memory

雨燕双飞 提交于 2019-12-14 03:59:00
问题 I have a large collection of tab separated text data in the form of DATE NAME MESSAGE . By large I mean, a collection of 1.76GB divided into 1075 actual files. I have to get the NAME data from all the files. Till now I have this: File f = new File(directory); File files[] = f.listFiles(); // HashSet<String> all = new HashSet<String>(); ArrayList<String> userCount = new ArrayList<String>(); for (File file : files) { if (file.getName().endsWith(".txt")) { System.out.println(file.getName());

Outof memory error while working on large dataset

烈酒焚心 提交于 2019-12-14 03:31:11
问题 I am running a code on LSI, which requires first fetching a lot of data from database. It is working fine for small data-set. As, i increase the data-set, it gives me the following error. Exception in thread "main" java.lang.OutOfMemoryError: Java heap space I am currently running the code on system having 2 GB of RAM. Is the error related to RAM capacity or due to something else. Thanks! 回答1: When you run Java you'll have to pass VM parameters for your specific concerns. You need to increase

memory-leak and out-of-memory

你说的曾经没有我的故事 提交于 2019-12-14 03:18:17
问题 Its really frustrating - I have som kind of memory leak in my app, despite I recycle bitmaps and use the garbagecollector. In my app I have a listview and when one klicks on a subitem several images loads into an alerdialogbuilder and in a scrollview. I have no more than 9 images in the scrollview and after a while I get out-of-memory-exception. What could I do more than recycle bitmaps? Should I create a weakreference of the imageviews for instance, so the garbagecollector can take care of

PermGen Space error on hot deploys on Tomcat

橙三吉。 提交于 2019-12-14 02:36:05
问题 I am seeing the following messages in the logs after each redeploys. INFO: Reloading Context with name [/x1Application] has started SEVERE: The web application [/x1Application] appears to have started a thread named [Mojarra-WebResourceMonitor-1-thread-1] but has failed to stop it. This is very likely to create a memory leak. SEVERE: The web application [/x1Application] appears to have started a thread named [Hector.me.prettyprint.cassandra.connection.CassandraHostRetryService-1] but has

WPF System.OutOfMemoryException System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree

China☆狼群 提交于 2019-12-14 02:18:51
问题 I've built a WPF desktop application on .NET framework 4.5.1. It "usually" works fine, but, on certain machines, at runtime, a System.OutOfMemoryException when a WPF datagrid is going to be shown. The stack trace reports: An error of type System.OutOfMemoryException occurred. in System.Windows.Controls.ItemContainerGenerator.ContainerFromItem(Object item) in Microsoft.Windows.Controls.DataGrid.TryFindCell(Object item, DataGridColumn column) in Microsoft.Windows.Automation.Peers

Maven Cobertura OutOfMemoryError

送分小仙女□ 提交于 2019-12-14 00:44:49
问题 I am using Maven site:run to generate a cobertura code coverage... The following is my pom.xml configuration for cobertura: <reporting> ... <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.3</version> </plugin> </plugins> </reporting> However I am getting OutOfMemoryError at the end of the site:run. Please suggest how to get rid of this error. (I have tried all those -Xmx, -XX options...) Exception in thread "Thread-0" java

Pandas: Memory error when using apply to split single column array into columns

拈花ヽ惹草 提交于 2019-12-13 19:10:26
问题 I am wondering if anybody has a quick fix for a memory error that appears when doing the same thing as in the below example on larger data? Example: import pandas as pd import numpy as np nRows = 2 nCols = 3 df = pd.DataFrame(index=range(nRows ), columns=range(1)) df2 = df.apply(lambda row: [np.random.rand(nCols)], axis=1) df3 = pd.concat(df2.apply(pd.DataFrame, columns=range(nCols)).tolist()) It is when creating df3 I get memory error. The DF's in the example: df 0 0 NaN 1 NaN df2 0 [[0

java.lang.OutOfMemoryError even if there is enough RAM available

孤人 提交于 2019-12-13 18:30:08
问题 I am trying to open a file in eclipse programmatically. the associated editor for the file is defined in an external plugin which I don't have control over the source code. I use the code snippet shown below to open the file. However I always got Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "AWT-Windows" I tried to increase the memory available for eclipse run configuration, but that didn't help. Any ideas what can cause this? private void openFiles

Out Of Memory in Codename One

旧时模样 提交于 2019-12-13 18:17:04
问题 My app used the SidePanel menu as navigation and when I show new form or open sidebar panel, the app takes more and more memory. Possible, it depended on using some Image processing (to mask image to circle) in SideBar and a lot of using URLImage class for downloading images. But most likely due to the fact that I did not free memory of the previous form. How I can free this memory? Code of changing forms: public void showForm(FormBuilder form) { if ( current == null || ( ! form.getForm()

Error: result would exceed 2^31 bytes

a 夏天 提交于 2019-12-13 17:20:27
问题 I am trying to load a JSON file into r using rjson. I get the following error message: Error in paste(readLines(file, warn = FALSE), collapse = "") : result would exceed 2^31-1 bytes My code is as follows: JsonData <- fromJSON(file= "text.txt", unexpected.escape = "skip" ) The file is large (3.47 GB) and from Kaggle, and I assume that it is well formatted. Is it possible to split a json file, or stream it? I am using a Mac, Sierra 10.12.6 and the latest versions of r and Rstudio 来源: https:/