android studio 编译时老是提示out of memory,让增加xmx的大小

图片说明
这该怎么解决,或者问题会出在哪里,我电脑32位的,最多2.9G。

2个回答

你的虚拟机太小了吧?用真机测试吧

设置1024试试,程序开发的电脑4G起步,8G是标配。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
PB中进行编译时,老是提示我:out of memory
众位大侠:我在PB中进行编译时,老是提示我:out of memory. 是不是内存不够呀?可我 的内存是128M呀(不过我的源代码也够多的有360多M),我急死了,请高手支招!! rnrn
编译时out of memory的问题!
定义了如下数据段:rndata segment ;定义数据段 rnnamepara label byte rnmaxlen1 db 21 rnnamelen db ? rnnamefld db 21 dup(?) ;定义姓名缓存区 rnrnphonepara label byte rnmaxlen2 db 8 rnphonelen db ? rnphonefld db 8 dup(?) ;定义电话号码缓存区 rnrnendaddr dw ? ;名字的首地址 rnnamectr dw 0 ;计数器(存入名字的个数) rnnametab db 50 dup(27 dup(' ')) ;能存入的名字的总数是50 rnnamesav db 27 dup(?),13,10,'$' ;名字加电话共27位(20+7) rnswapped db 0 ;标志位 rnrnmessage0 db 'How many names do you want to enter?',13,10,'$' rn;需要输入姓名电话的个数 rnmessage1 db 'Warning:The number of your enter exceed the limit of 50! Plesae input the number again!',13,10,'$' rn;警告:输入数量高于50 rnmessage2 db 'Warning:The number of your enter is not allowed! Please intput the number again!',13,10,'$' rn;警告:输入的数量不符合要求(应为两位十进位制数) rnmessage3 db 'Input name:','$' rn;要求输入姓名 rnmessage4 db 'Warning:Input error!,please input a name!',13,10,'$' rn;警告:没有输入名字 rnmessage5 db 'Input a telephone number:','$' rn;要求输入电话号码 rnmessage6 db 'Do you want a telephone number?(Y/N)','$' rn;询问是否要输出电话号码 rnmessage7 db 'name?',13,10,'$' rn;输入要查询的姓名 rnmessage8 db 'name tel.',13,10,'$' rn;输出姓名和电话 rnmessage9 db 'No match!',13,10,'$' rn;没有找到要查找的电话 rnmessage10 db 'The result of sort is as follows:',13,10,'$' rn;按升序排列姓名、电话 rndata ends rnrn结果用MASM5编译时显示在endaddr dw ? 这一行Out of Memory.问题在哪?诸位高手请指教!
请教:vb编译时提示Out of Memory!怎么办
我的程式引用了一个类工程,每次编译到写文件时提示out of memory,硬件无问题后来在WIN2000下编译通过,请问各位有什么好的检测办法!
提示out of memory怎么回事?
现在正在写一个程序,从ftp上取图片,在界面上显示出来,点击下一张时显示下一张图片。但偶尔会出现out of memory这个错误。就在下面这句出错rn Me.picBox1.Image = _rn Bitmap.FromFile(strpath & "\" & "picture.jpg")rnrn似乎有的ftp服务器就不会,而且错误很随机。rn偶新手,望高手详解
Android Studio 提示 out of memory,该怎么解决
![图片说明](https://img-ask.csdn.net/upload/201601/18/1453108781_976097.png)n如图,用一段时间后就会出现这个提示框,一旦出现只能重启Studio,很是影响工作。这个该怎么解决啊。增加 Xmx 没用
android LOG 中提示Out of memory !!!!!
RT,程序运行一段时间就报Out of memory ,如下图所示rn[img=https://img-bbs.csdn.net/upload/201404/18/1397830010_608450.jpg][/img]rnrn我是这样测试的,先打开一个Activity,当然我的Activity界面比较漂亮,有用到一些图片做背景,然后再关闭这个Activity,再打开,反复的可能测试了半个小时,就报这个错误了,每一次关闭Activity的时候我调用System.gc()垃圾回收一次,不过就算是这样还是抱内存不足的错误,请教大家是什么原因!!!!测试中我打开那个Activity,不关闭,程序一直挂着都没有问题的,Activity中还建有线程更新一些图形界面之类的操作
android out of memory for surface
x86平台,android运行过程中,会随机出现如题所述问题,以下是某次的logcat:rnD/installd( 115): DexInv: --- BEGIN '/system/app/JETBoy.apk' ---rnD/dalvikvm( 395): DexOpt: load 7ms, verify 33ms, opt 0msrnD/installd( 115): DexInv: --- END '/system/app/JETBoy.apk' (success) ---rnD/JetBoy ( 390): opening jet filernD/JetBoy ( 390): opening jet file DONErnD/JetBoy ( 390): start queuing jet filernD/JetBoy ( 390): start queuing jet file DONErnD/dalvikvm( 390): GC freed 717 objects / 53848 bytes in 25msrnD/dalvikvm( 390): GC freed 68 objects / 2704 bytes in 24msrnD/dalvikvm( 390): GC freed 36 objects / 1760 bytes in 24msrnD/JetBoy ( 390): @@@ done creating view!rnD/dalvikvm( 390): GC freed 300 objects / 16344 bytes in 24msrnD/dalvikvm( 390): GC freed 23 objects / 912 bytes in 20msrnI/ActivityManager( 130): Displayed activity com.example.android.jetboy/.JetBoy: 1313 ms (total 1313 ms)rnE/JET_JNI ( 390): android_media_JetPlayer_pause(): failed to pause with EAS error code -31rnE/SurfaceComposerClient( 130): openGlobalTransaction() called more than once. skipping.rnE/SurfaceComposerClient( 130): Not in transaction (client=0x8c6ded0, SurfaceID=0, mTransactionOpen=0rnW/WindowManager( 130): Error updating surface in Windowb074a9d8 com.example.android.jetboy/com.example.android.jetboy.JetBoy paused=falsernW/WindowManager( 130): java.lang.IllegalArgumentExceptionrnW/WindowManager( 130): at android.view.Surface.setAlpha(Native Method)rnW/WindowManager( 130): at com.android.server.WindowManagerService.performLayoutAndPlaceSurfacesLockedInner(WindowManagerService.java:10186)rnW/WindowManager( 130): at com.android.server.WindowManagerService.performLayoutAndPlaceSurfacesLocked(WindowManagerService.java:9256)rnW/WindowManager( 130): at com.android.server.WindowManagerService.finishDrawingWindow(WindowManagerService.java:2540)rnW/WindowManager( 130): at com.android.server.WindowManagerService$Session.finishDrawing(WindowManagerService.java:6709)rnW/WindowManager( 130): at android.view.IWindowSession$Stub.onTransact(IWindowSession.java:212)rnW/WindowManager( 130): at com.android.server.WindowManagerService$Session.onTransact(WindowManagerService.java:6648)rnW/WindowManager( 130): at android.os.Binder.execTransact(Binder.java:287)rnW/WindowManager( 130): at com.android.server.SystemServer.init1(Native Method)rnW/WindowManager( 130): at com.android.server.SystemServer.main(SystemServer.java:497)rnW/WindowManager( 130): at java.lang.reflect.Method.invokeNative(Native Method)rnW/WindowManager( 130): at java.lang.reflect.Method.invoke(Method.java:521)rnW/WindowManager( 130): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)rnW/WindowManager( 130): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)rnW/WindowManager( 130): at dalvik.system.NativeStart.main(Native Method)rnI/WindowManager( 130): Out of memory for surface! Looking for leaks...rnW/WindowManager( 130): LEAKED SURFACE (app token hidden): Windowb073a9d8 com.android.internal.service.wallpaper.ImageWallpaper paused=false surface=Surface(native-token=1470rnW/WindowManager( 130): LEAKED SURFACE (app token hidden): Windowb06b95e0 com.android.launcher/com.android.launcher.Launcher paused=false surface=Surface(native-token=1472204rnW/WindowManager( 130): LEAKED SURFACE (app token hidden): Windowb0765bf8 SurfaceView paused=false surface=Surface(native-token=147874072) token=AppWindowTokenb0839438 tokenrnE/Surface ( 390): error dequeuing a buffer (Unknown error: -19)rnE/Surface ( 390): dequeueBuffer failed (No such device)rnE/SurfaceHolder( 390): Exception locking surfacernE/SurfaceHolder( 390): java.lang.IllegalArgumentExceptionrnE/SurfaceHolder( 390): at android.view.Surface.lockCanvasNative(Native Method)rnE/SurfaceHolder( 390): at android.view.Surface.lockCanvas(Surface.java:288)rnE/SurfaceHolder( 390): at android.view.SurfaceView$2.internalLockCanvas(SurfaceView.java:680)rnE/SurfaceHolder( 390): at android.view.SurfaceView$2.lockCanvas(SurfaceView.java:663)rnE/SurfaceHolder( 390): at com.example.android.jetboy.JetBoyView$JetBoyThread.run(JetBoyView.java:663)rnW/WindowManager( 130): LEAKED SURFACE (app token hidden): Windowb074a9d8 com.example.android.jetboy/com.example.android.jetboy.JetBoy paused=false surface=Surface(native-tokrnW/WindowManager( 130): LEAKED SURFACE (app token hidden): Windowb06510c8 StatusBarExpanded paused=false surface=Surface(native-token=147019560) token=AppWindowTokenb0839438rnW/WindowManager( 130): LEAKED SURFACE (app token hidden): Windowb076f740 StatusBar paused=false surface=Surface(native-token=145184728) token=AppWindowTokenb0839438 token=HrnW/WindowManager( 130): Looks like we have reclaimed some memory, clearing surface for retry.rnW/WindowManager( 130): Due to memory failure, waiting a bit for next layoutrnW/dalvikvm( 390): threadid=19: thread exiting with uncaught exception (group=0xb6044c50)rnE/AndroidRuntime( 390): Uncaught handler: thread Thread-8 exiting due to uncaught exceptionrnE/AndroidRuntime( 390): java.lang.NullPointerExceptionrnE/AndroidRuntime( 390): at com.example.android.jetboy.JetBoyView$JetBoyThread.doDrawReady(JetBoyView.java:609)rnE/AndroidRuntime( 390): at com.example.android.jetboy.JetBoyView$JetBoyThread.doDraw(JetBoyView.java:483)rnE/AndroidRuntime( 390): at com.example.android.jetboy.JetBoyView$JetBoyThread.run(JetBoyView.java:665)rnI/Process ( 130): Sending signal. PID: 390 SIG: 3rnE/ActivityThread( 130): Failed to find provider info for android.server.checkinrnE/Checkin ( 130): Error reporting crash: java.lang.IllegalArgumentException: Unknown URL content://android.server.checkin/crashesrnI/dalvikvm( 390): threadid=7: reacting to signal 3rnI/dalvikvm( 390): Wrote stack trace to '/data/anr/traces.txt'rnE/Surface ( 211): surface (id=0, identity=67) is invalid, err=-19 (No such device)rnE/Surface ( 211): dequeueBuffer failed (No such device)rnE/ViewRoot( 211): IllegalArgumentException locking surfacernE/ViewRoot( 211): java.lang.IllegalArgumentExceptionrnE/ViewRoot( 211): at android.view.Surface.lockCanvasNative(Native Method)rnE/ViewRoot( 211): at android.view.Surface.lockCanvas(Surface.java:288)rnE/ViewRoot( 211): at android.view.ViewRoot.draw(ViewRoot.java:1283)rnE/ViewRoot( 211): at android.view.ViewRoot.performTraversals(ViewRoot.java:1114)rnE/ViewRoot( 211): at android.view.ViewRoot.handleMessage(ViewRoot.java:1633)rnE/ViewRoot( 211): at android.os.Handler.dispatchMessage(Handler.java:99)rnE/ViewRoot( 211): at android.os.Looper.loop(Looper.java:123)rnE/ViewRoot( 211): at android.app.ActivityThread.main(ActivityThread.java:4363)rnE/ViewRoot( 211): at java.lang.reflect.Method.invokeNative(Native Method)rnE/ViewRoot( 211): at java.lang.reflect.Method.invoke(Method.java:521)rnE/ViewRoot( 211): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)rnE/ViewRoot( 211): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)rnE/ViewRoot( 211): at dalvik.system.NativeStart.main(Native Method)rnI/Process ( 390): Sending signal. PID: 390 SIG: 9rnrn出现该问题后,android的壁纸和statusbar都消失,home背景变黑。各位大侠帮忙看看,问题可能处在什么地方,谢谢!
提示Out of memory 和insufficent memory to continue,内存不足
我的数据窗口中,试过用FOR ....NEXT和DO WHILE ....LOOT做3万多次循环,均提示Out of memory 和Insufficent memory to continue,问题出在哪里了?是不是一次执行的代码循环不能超过一定的次数?在PB代码执行过程中,内存空间如何释放出来?
socketconnection提示out of memory,怎么办?
socketconnection提示out of memory,怎么办?
C6678提示out of memory的解决方法
本人使用的TI公司生产的KeyStone结构的C6000系列的八核DSP——C6678,在程序运行时总是会在console界面输出提示:ti.sysbios.heaps.HeapMem: line 307: out of memory: handle=0x828f58, size=3572.如图所示。                                         经过查找原...
Android Studio 增加注释和提示
此篇文章主要介绍如何在Android Studio中函数如何添加注释,使其和eclipse一样方便的添加注释Android Studio默认函数注释为/** * */下面方法将要改为如下格式/** * * @author sail * @time 15-11-25 下午2:41 */步骤如下:一、File->Setting->Editor->Live Templates二、点击最右边+
delphi7 编译时经常报Out of memory
我的Delphi7,当然是D版破解的。现在在开发一个程序,我是Delphi新手,有时编译,多打开几个.pas就报Out of Memory错误,为何编译时也报错呢?请高手指点一二?是我写的程序不对,还是Delphi7不稳定呢?还是操作系统xp有问题了?我该怎么办?
编译时的OUT OF MEMORY问题,急急急!
我编了一个不到二百行的小程序,为何在用masm编译时未报错,但在最后一行显示exp3.asm(??) out of memory?rn注:??为一行号内容为lea dx,bufferrnrn
out of Memory
有没有国庆的时候同LZ一样在悲催加班的大虾,能不能帮我看下一下程序:在TMyThread中把文本文件通过StringList在StringGrid中显示。当文本文件有600000行的时候,在导入到40%左右的时候就提示:Projece ss.exe raised exception class EOutOfMemory with message 'Out of memory'。大虾们能不能帮我看下是什么原因。rnrnrnprocedure TMyThread.Execute;rnvarrntmpList:TStringList;rn index,row:Integer;rn originalrow:integer;rn repeatcount:integer;rnbeginrnFreeOnTerminate := True; 这可以让线程执行完毕后随即释放rn if NewMsgBox.OpenDialog1.Execute then//选择文本文件rn beginrn tmpList:=TStringList.Create;//初始化StringListrn tmpList.LoadFromFile(NewMsgBox.OpenDialog1.FileName);//导入文本文件到StringListrn if tmpList.Count=0 then //文本文件为空 则退出rn beginrn exit;rn endrn elsern beginrn row:=NewMsgBox.PhoneGrid.RowCount;rn NewMsgBox.PhoneGrid.RowCount:=NewMsgBox.PhoneGrid.RowCount+tmpList.Count;rn for index:=0 to tmpList.Count-1 do //把TstringList的内容写入PhoneGrid PhoneGrid为StringGridrn beginrn NewMsgBox.PhoneGrid.Cells[0,row]:=tmpList[index];rn row:=row+1;rn waitplease.Gauge1.Progress:=waitplease.Gauge1.Progress+1;rn end;rn end;rn tmpList.Free;rnrn end;rnrnrnend;
out of memory
我初学ORACLE,利用DBCA建立数据库时到50%的时候提示:“OUT OF MEMORY”,我的内存为1GB。怎么办??
Out of memory
Out of memory,insufficient memory to continue.
out of memory。。。。
一个小游戏,第一次运行的时候正常,然后点击图标第二次运行,报错:rn...rn...rn03-24 09:52:08.366: E/dalvikvm-heap(414): 1075200-byte external allocation too large for this process.rn03-24 09:52:08.366: E/GraphicsJNI(414): VM won't let us allocate 1075200 bytesrn03-24 09:52:08.385: D/AndroidRuntime(414): Shutting down VMrn03-24 09:52:08.385: W/dalvikvm(414): threadid=1: thread exiting with uncaught exception (group=0x4001d800)rn03-24 09:52:08.426: E/AndroidRuntime(414): FATAL EXCEPTION: mainrn03-24 09:52:08.426: E/AndroidRuntime(414): java.lang.OutOfMemoryError: bitmap size exceeds VM budgetrn03-24 09:52:08.426: E/AndroidRuntime(414): at android.graphics.Bitmap.nativeCreate(Native Method)rn03-24 09:52:08.426: E/AndroidRuntime(414): at android.graphics.Bitmap.createBitmap(Bitmap.java:468)rn03-24 09:52:08.426: E/AndroidRuntime(414): at android.graphics.Bitmap.createBitmap(Bitmap.java:435)rn03-24 09:52:08.426: E/AndroidRuntime(414): at hxy.components.Pic.resetBmp(Pic.java:197)rn03-24 09:52:08.426: E/AndroidRuntime(414): at hxy.components.Pic.loadManagerBmps(Pic.java:94)rn03-24 09:52:08.426: E/AndroidRuntime(414): at hxy.cButton.cButton.addPic(cButton.java:134)rn...rn...rnrn然后再次点击图标运行,又正常。如此循环....囧rz 这是怎么回事呢?该怎么解决呢?bow~~
Out of memory?
在软件运行的时候由于有非常大的数据最后导致Out of memory!请问有什么好的方法或技术解决这个问题?
Out of Memory
这个问题实在是太纠结了,因为这个问题他不是每次都出来,有时候会报出这个问题,有时候又不会。rn不知道如何去查找到底是哪里导致的这个问题,还有如何去解决这个问题。rn不要回答我说什么内存不够,增加内存等。rn这个应该是程序上的问题,只是不知怎么去寻找问题发生在哪里。rn谢谢
out of memory!
我的jbuilder在调试的时候经常出现 out of memory!这是什么原因,怎样解决!rn谢谢、
Out of memory?!
rnrnrn 只是一个很小的程序,运行masm后竟然告诉我Out of memory,请大家指点!
android studio 编译时自动关闭
本人使用的android studio3.0,早上打开后,在编译时,AS自己退出了,查看idea.log日志后,发现如下错误日志: org.gradle.tooling.BuildException: Could not run build action using Gradle distribution 'https://services.gradle.org/distributions/g...
请教mysql报错,提示Out of memory
Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use 'ulimit' to allow mysqld to use more memory or you can add more swap spacern表引擎都是myisamrnrnrn下面是my.inirn# MySQL Server Instance Configuration Filern# ----------------------------------------------------------------------rn# Generated by the MySQL Server Instance Configuration Wizardrn#rn#rn# Installation Instructionsrn# ----------------------------------------------------------------------rn#rn# On Linux you can copy this file to /etc/my.cnf to set global options,rn# mysql-data-dir/my.cnf to set server-specific optionsrn# (@localstatedir@ for this installation) or torn# ~/.my.cnf to set user-specific options.rn#rn# On Windows you should keep this file in the installation directory rn# of your server (e.g. C:\Program Files\MySQL\MySQL Server X.Y). Torn# make sure the server reads the config file use the startup option rn# "--defaults-file". rn#rn# To run run the server from the command line, execute this in a rn# command line shell, e.g.rn# mysqld --defaults-file="C:\Program Files\MySQL\MySQL Server X.Y\my.ini"rn#rn# To install the server as a Windows service manually, execute this in a rn# command line shell, e.g.rn# mysqld --install MySQLXY --defaults-file="C:\Program Files\MySQL\MySQL Server X.Y\my.ini"rn#rn# And then execute this in a command line shell to start the server, e.g.rn# net start MySQLXYrn#rn#rn# Guildlines for editing this filern# ----------------------------------------------------------------------rn#rn# In this file, you can use all long options that the program supports.rn# If you want to know the options a program supports, start the programrn# with the "--help" option.rn#rn# More detailed information about the individual options can also bern# found in the manual.rn#rn#rn# CLIENT SECTIONrn# ----------------------------------------------------------------------rn#rn# The following options will be read by MySQL client applications.rn# Note that only client applications shipped by MySQL are guaranteedrn# to read this section. If you want your own MySQL client program torn# honor these values, you need to specify it as an option during thern# MySQL client library initialization.rn#rn[client]rnrnport=3306rnrn[mysql]rnrndefault-character-set=utf8rnrnrn# SERVER SECTIONrn# ----------------------------------------------------------------------rn#rn# The following options will be read by the MySQL Server. Make sure thatrn# you have installed the server correctly (see above) so it reads this rn# file.rn#rn[mysqld]rnrn# The TCP/IP Port the MySQL Server will listen onrnport=3306rnrnrn#Path to installation directory. All paths are usually resolved relative to this.rnbasedir="D:/mysql/"rnrn#Path to the database rootrndatadir="D:/mysql/Data/"rnrn# The default character set that will be used when a new schema or table isrn# created and no character set is definedrndefault-character-set=utf8rnrn# The default storage engine that will be used when create new tables whenrndefault-storage-engine=MYISAMrnrn# Set the SQL mode to strictrnsql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"rnrn# The maximum amount of concurrent sessions the MySQL server willrn# allow. One of these connections will be reserved for a user withrn# SUPER privileges to allow the administrator to login even if thern# connection limit has been reached.rnmax_connections=1210rnrn# Query cache is used to cache SELECT results and later return themrn# without actual executing the same query once again. Having the queryrn# cache enabled may result in significant speed improvements, if yourrn# have a lot of identical queries and rarely changing tables. See thern# "Qcache_lowmem_prunes" status variable to check if the current valuern# is high enough for your load.rn# Note: In case your tables change very often or if your queries arern# textually different every time, the query cache may result in arn# slowdown instead of a performance improvement.rnquery_cache_size=175Mrnrn# The number of open tables for all threads. Increasing this valuern# increases the number of file descriptors that mysqld requires.rn# Therefore you have to make sure to set the amount of open filesrn# allowed to at least 4096 in the variable "open-files-limit" inrn# section [mysqld_safe]rntable_cache=2420rnrn# Maximum size for internal (in-memory) temporary tables. If a tablern# grows larger than this value, it is automatically converted to diskrn# based table This limitation is for a single table. There can be manyrn# of them.rntmp_table_size=39Mrnrnrn# How many threads we should keep in a cache for reuse. When a clientrn# disconnects, the client's threads are put in the cache if there aren'trn# more than thread_cache_size threads from before. This greatly reducesrn# the amount of thread creations needed if you have a lot of newrn# connections. (Normally this doesn't give a notable performancern# improvement if you have a good thread implementation.)rnthread_cache_size=60rnrn#*** MyISAM Specific optionsrnrn# The maximum size of the temporary file MySQL is allowed to use whilern# recreating the index (during REPAIR, ALTER TABLE or LOAD DATA INFILE.rn# If the file-size would be bigger than this, the index will be createdrn# through the key cache (which is slower).rnmyisam_max_sort_file_size=100Grnrn# If the temporary file used for fast index creation would be biggerrn# than using the key cache by the amount specified here, then prefer thern# key cache method. This is mainly used to force long character keys inrn# large tables to use the slower key cache method to create the index.rnmyisam_sort_buffer_size=39Mrnrn# Size of the Key Buffer, used to cache index blocks for MyISAM tables.rn# Do not set it larger than 30% of your available memory, as some memoryrn# is also required by the OS to cache rows. Even if you're not usingrn# MyISAM tables, you should still set it to 8-64M as it will also bern# used for internal temporary disk tables.rnkey_buffer_size=541Mrnrn# Size of the buffer used for doing full table scans of MyISAM tables.rn# Allocated per thread, if a full scan is needed.rnread_buffer_size=64Krnread_rnd_buffer_size=256Krnrn# This buffer is allocated when MySQL needs to rebuild the index inrn# REPAIR, OPTIMZE, ALTER table statements as well as in LOAD DATA INFILErn# into an empty table. It is allocated per thread so be careful withrn# large settings.rnsort_buffer_size=256Krnrnrn#*** INNODB Specific options ***rnrnrn# Use this option if you have a MySQL server with InnoDB support enabledrn# but you do not plan to use it. This will save memory and disk spacern# and speed up some things.rn#skip-innodbrnrn# Additional memory pool that is used by InnoDB to store metadatarn# information. If InnoDB requires more memory for this purpose it willrn# start to allocate it from the OS. As this is fast enough on mostrn# recent operating systems, you normally do not need to change thisrn# value. SHOW INNODB STATUS will display the current amount used.rninnodb_additional_mem_pool_size=2Mrnrn# If set to 1, InnoDB will flush (fsync) the transaction logs to thern# disk at each commit, which offers full ACID behavior. If you arern# willing to compromise this safety, and you are running smallrn# transactions, you may set this to 0 or 2 to reduce disk I/O to thern# logs. Value 0 means that the log is only written to the log file andrn# the log file flushed to disk approximately once per second. Value 2rn# means the log is written to the log file at each commit, but the logrn# file is only flushed to disk approximately once per second.rninnodb_flush_log_at_trx_commit=1rnrn# The size of the buffer InnoDB uses for buffering log data. As soon asrn# it is full, InnoDB will have to flush it to disk. As it is flushedrn# once per second anyway, it does not make sense to have it very largern# (even with long transactions).rninnodb_log_buffer_size=1Mrnrn# InnoDB, unlike MyISAM, uses a buffer pool to cache both indexes andrn# row data. The bigger you set this the less disk I/O is needed torn# access data in tables. On a dedicated database server you may set thisrn# parameter up to 80% of the machine physical memory size. Do not set itrn# too large, though, because competition of the physical memory mayrn# cause paging in the operating system. Note that on 32bit systems yourn# might be limited to 2-3.5G of user level memory per process, so do notrn# set it too high.rninnodb_buffer_pool_size=8Mrnrn# Size of each log file in a log group. You should set the combined sizern# of log files to about 25%-100% of your buffer pool size to avoidrn# unneeded buffer pool flush activity on log file overwrite. However,rn# note that a larger logfile size will increase the time needed for thern# recovery process.rninnodb_log_file_size=10Mrnrn# Number of threads allowed inside the InnoDB kernel. The optimal valuern# depends highly on the application, hardware as well as the OSrn# scheduler properties. A too high value may lead to thread thrashing.rninnodb_thread_concurrency=10rn
oracle数据库经常提示27102 out of memory解决方法
网上有很多解决方案,但是我一个也看不懂,不知道写的什么鬼的东西,为什么一句话就能解决的事,非得长篇大论说原理是什么,看得一脸懵逼 我的解决方法入戏 vi /etc/sysctl.conf 修改kernel.shmall(共享内存总量)的值,该值原来为2097152,我把它给为4097152(暂时不知道应该改什么值,但是把这个值变大就对了,我就是随便吧第一位的2改为4,然后问题就自动解决)了,...
编译时提示变量无大小?
#include rn #include rn #define MAXVEX 100 //最大顶点数rn #define INFINITY 65535 //用65535来代表无穷大 rn int visited[MAXVEX]=0;rn typedef structrn char vexs[MAXVEX]; //顶点表 rn int arc[MAXVEX][MAXVEX]; //邻接矩阵,可看作边 rn int numVertexes, numEdges; //图中当前的顶点数和边数rn Graph; rn rn rn rn void CreateGraph(Graph *g)rn int i,j,k,w,t; rn printf("输入顶点数,边数和t(中间用空格):"); rn scanf("%d %d %d", &(g->numVertexes), &(g->numEdges),&t); rn printf("\n");rn for(i=1;i<=g->numVertexes;i++) rn rn getchar(); rn printf("输入第%d顶点信息vexs[%d]=",i,i); rn scanf("%c",&(g->vexs[i])); rn rn printf("\n"); rn for(i=1;i<=g->numVertexes;i++) rn for(j=1;j<=g->numVertexes;j++) rn if (t>2) rn g->arc[i][j] = INFINITY; rn else rn g->arc[i][j]=0; rn for(k=1;k<=g->numEdges;k++) rn rn printf("输入i j(中间用空格):");rn scanf("%d %d",&i,&j); rn if(i>g->numVertexes ||j>g->numVertexes) exit(0); rn if(t>2) rn rn printf("输入w:"); rn scanf("%d",&w); rn g->arc[i][j]=w; rn if(t==3) rn g->arc[j][i]=w; rn rn else rn rn g->arc[i][j]=1; rn if (t==1) rn g->arc[j][i]=1; rn rn rn printf("\n"); rn printf("输出邻接矩阵:\n"); rn for(i=1;i<=g->numVertexes ;i++) rn rn for(j=1;j<=g->numVertexes ;j++) rn rn printf("%8d",g->arc[i][j]); rn if(t>2&&g->arc[i][j]==65535) rn g->arc[i][j]=0; rn else if(t>2&&g->arc[i][j]!=65535) rn g->arc[i][j]=1; rn rn printf("\n");rn rn rn rn rn rn rn void dfs (Graph g,int i) //广度优先搜索,从顶点i开始遍历rn int j; rn printf("%d->",i); rn //输出访问顶点 rn visited[i]=1; //全局数组访问标记置1表示已经访问 rn for(j=1; j<=g.numVertexes; j++) rn if ((g.arc[i][j]==1)&&(!visited[j])) rn dfs (g,j);rn rn rn void bfs (Graph g,int i)rn rn int visited[MAXVEX]=0; rn int q[g.numVertexes+1] ; //此处出现问题提示q没有大小。求帮助 rn int f,r,j ; rn f=r=0 ; rn printf("%d->",i);rn visited[i]=1 ;rn r++; rn q[r]=i ; rn while (f",j); ; visited[j]=1 ; r++; q[r]=j ; rn rn rn rn rn rn int main()rn rn Graph g; rn int i; rn printf("t为1~4,分别表示无向图、有向图、带权无向图、带权有向图\n"); rn CreateGraph(&g); rn printf("\n输入i:"); rn scanf("%d",&i); rn printf("\n深度优先搜索遍历:"); rn dfs (g,i); rn printf("NULL\n");rn printf("广度优先搜索遍历:"); rn bfs (g,i); rn printf("NULL\n");rn return 0;rn
JBoss 没有加任何的 Xms Xmx 的 JVM 内存限制,但是,在启动的时候,提示 Out Of Memory
Hi,rnrn在 Linux 服务器有一个 JBoss ,我给JBoss 没有加任何的 Xms Xmx 的 JVM 内存限制,但是,在启动的时候,提示 Out Of Memory。rnrn请问,我应该如何检查 JBoss (今天第一天使用, 之前使用 Weblogic, Webshpere ), 我想分配尽可能小(足以运行)的内存给JBoss 使用,请问在 JBoss 里面我怎么知道内存都用在哪了?如何将可能的地方列出来(比如:某个应用使用了多少内存等)?rnrn[b]注:我这台是 VMWare, 原始安装完后,在 JBoss 的启动参数里面是带有 Xms = 3GB, Xmx = 4GB 的参数的,但是,个人用来测试,我想用最小的内存来运行,所有,我将参数里面的 Xms Xmx 删除了。[/b]rnrn下面是 boot.log 里面的信息供参考:rnrn[code=java]rn00:18:04,477 ERROR [ProfileDeployAction] Failed to add deployment: um_bulkimport.ear: org.jboss.deployers.spi.DeploymentException: Exception determining structure: AbstractVFSDeployment(um_bulkimport.ear)rn at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) [:2.2.2.GA]rn at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:85) [:2.2.2.GA]rn at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:1106) [:2.2.2.GA]rn at org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(MainDeployerImpl.java:417) [:2.2.2.GA]rn at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:367) [:2.2.2.GA]rn at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:277) [:2.2.2.GA]rn at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.addDeployment(MainDeployerPlugin.java:77) [:6.1.0.Final]rn at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.addDeployment(ProfileControllerContext.java:133) [:0.2.2]rn at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:132) [:0.2.2]rn at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94) [:0.2.2]rn at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.SP2]rn at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.SP2]rn at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.SP2]rn at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.SP2]rn at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.SP2]rn at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.SP2]rn at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.SP2]rn at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.SP2]rn at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.SP2]rn at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.SP2]rn at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.SP2]rn at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.SP2]rn at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.SP2]rn at org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicProfileActivation.start(ProfileActivationWrapper.java:190) [:0.2.2]rn at org.jboss.profileservice.dependency.ProfileActivationWrapper.start(ProfileActivationWrapper.java:87) [:0.2.2]rn at org.jboss.profileservice.dependency.ProfileActivationService.activateProfile(ProfileActivationService.java:215) [:0.2.2]rn at org.jboss.profileservice.dependency.ProfileActivationService.activate(ProfileActivationService.java:159) [:0.2.2]rn at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:112) [:0.2.2]rn at org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolverFacade.deploy(BasicResolverFactory.java:87) [:0.2.2]rn at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:91) [:0.2.2]rn at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:132) [:6.1.0.Final]rn at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.1.0.Final]rn at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-6]rn at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-6]rn at java.lang.Thread.run(Thread.java:662) [:1.6.0_33]rnCaused by: java.lang.OutOfMemoryError: Java heap spacern at java.lang.String.substring(String.java:1939) [:1.6.0_33]rn at org.jboss.vfs.util.PathTokenizer.getTokens(PathTokenizer.java:141) [jboss-vfs.jar:3.0.1.GA]rn at org.jboss.vfs.util.PathTokenizer.getTokens(PathTokenizer.java:102) [jboss-vfs.jar:3.0.1.GA]rn at org.jboss.vfs.spi.JavaZipFileSystem.(JavaZipFileSystem.java:104) [jboss-vfs.jar:3.0.1.GA]rn at org.jboss.vfs.VFS.mountZip(VFS.java:380) [jboss-vfs.jar:3.0.1.GA]rn at org.jboss.vfs.util.automount.Automounter$RegistryEntry.mount(Automounter.java:263) [jboss-vfs.jar:3.0.1.GA]rn at org.jboss.vfs.util.automount.Automounter$RegistryEntry.access$000(Automounter.java:232) [jboss-vfs.jar:3.0.1.GA]rn at org.jboss.vfs.util.automount.Automounter.mount(Automounter.java:117) [jboss-vfs.jar:3.0.1.GA]rn at org.jboss.vfs.util.automount.Automounter.mount(Automounter.java:103) [jboss-vfs.jar:3.0.1.GA]rn at org.jboss.web.deployers.WARStructure.doDetermineStructure(WARStructure.java:187) [:6.1.0.Final]rn at org.jboss.deployers.vfs.plugins.structure.AbstractVFSArchiveStructureDeployer.determineStructure(AbstractVFSArchiveStructureDeployer.java:60) [:2.2.2.GA]rn at org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.determineStructure(StructureDeployerWrapper.java:73) [:2.2.2.GA]rn at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDetermineStructure(VFSStructuralDeployersImpl.java:197) [:2.2.2.GA]rn at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determineStructure(VFSStructuralDeployersImpl.java:143) [:2.2.2.GA]rn at org.jboss.deployers.vfs.spi.structure.StructureContext.determineChildStructure(StructureContext.java:294) [:2.2.2.GA]rn at org.jboss.deployment.EARStructure.doDetermineStructure(EARStructure.java:267) [:6.1.0.Final]rn at org.jboss.deployers.vfs.plugins.structure.AbstractVFSArchiveStructureDeployer.determineStructure(AbstractVFSArchiveStructureDeployer.java:60) [:2.2.2.GA]rn at org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.determineStructure(StructureDeployerWrapper.java:73) [:2.2.2.GA]rn at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDetermineStructure(VFSStructuralDeployersImpl.java:197) [:2.2.2.GA]rn at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determineStructure(VFSStructuralDeployersImpl.java:222) [:2.2.2.GA]rn at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:77) [:2.2.2.GA]rn at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:1106) [:2.2.2.GA]rn at org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(MainDeployerImpl.java:417) [:2.2.2.GA]rn at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:367) [:2.2.2.GA]rn at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:277) [:2.2.2.GA]rn at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.addDeployment(MainDeployerPlugin.java:77) [:6.1.0.Final]rn at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.addDeployment(ProfileControllerContext.java:133) [:0.2.2]rn at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:132) [:0.2.2]rn at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94) [:0.2.2]rn at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.SP2]rn at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.SP2]rn at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.SP2]rnrn00:24:44,855 INFO [STDOUT] Posting Shutdown Request to the server...rn00:24:49,924 INFO [STDOUT] Server startup has not completed, so halting the processrn[/code]rnrn谢谢。
tomcat out of memory 问题
我现在做的一个项目是struts+hibernate架构的rn在大数据量检索时会出现out of memory的error我想捕获这经errorrn以下是代码rn[code="java"]rntryrn session = DBConnection.getSession();//Obtaining hibernate sessionrn rn //run this query and populate the query listrn search_DB = "select * from commonlogs";rn rn query = session.createQuery(search_DB);rnrn for(int i =0; i< params.length; i++)rn rn if(params[i]==null)rn break;rn query.setString(i, params[i]);rn rn rn query.setMaxResults(fetchSize);rn rn [color=red]returnValue = query.list();[/color]rn rn catch(MyException ex)rn throw ex;rn rn catch(Exception ex)rn throw new MyException (ErrorCodes.SQLEXCEPTION,ex);rn rn //start add by sunwei 2009/03/05rn catch (Throwable e) rn logger.writeError(ErrorCodes.NONSPECIFIEDEXCEPTION, ResourceAccess.getErrorMessage(ErrorCodes.NONSPECIFIEDEXCEPTION), e);rn throw new MyException (ErrorCodes.NONSPECIFIEDEXCEPTION,new Exception(e.toString()));//也是输出logrn rn //end add by sunwei 2009/03/05rn finallyrn tryrn rn DBConnection.releaseResources(session);//Closing sessionrn rn catch(MyException ex)rn throw ex;rn rn rn[/code]rn上一层捕获MyException的话,会跳转到GlobalErrors.jsp(错误页面)rnrn[color=red]returnValue = query.list();[/color]执行时会out of memoryrnrnstruts-config.xmlrn[code="java"]rnrn rn rn rn rn rn rn[/code]rn不能输出log,但会跳转到GlobalErrors.jsp(错误页面)rn我用的log机制是log4j,其它异常(比如数据库连接失败等)都会输出log,就是out of memory不能.rn谁能帮我看看是什么原因.n[b]问题补充:[/b]n谢谢大家的回答!rn调高JVM的内在确实可以减少out of memory的发生,这个我以前调查过.rn我说一下这个程序发生out of memory原因:主要是一次从数据库中检索出100万条记录造成的,我也不想这样做查询的,但是程序已经是不能改了,只想知道原因.rn既然throwable不能捕获out of memory这个error,那什么程序又可以跳转到GlobalErrors.jsp(错误页面) 呢?能不能帮我分析一下.已经加分了.n[b]问题补充:[/b]n为什么程序又可以跳转到GlobalErrors.jsp(错误页面) 呢?
SMTP out of memory ?
我的Exchange 2000 有时候发不出去,Foxmail报错说:“SMTP out of memory”,是什么原因啊?怎么解决呢?
out of memory错误
TPerson、ICustomer分别是对人和公司的封装,TPersonalCustomer从它俩继承,封装个人类型的客户(对应的还有公司类型的客户),TPersonalCustomer重载了TPerson类中的Name属性,但是在给Name赋值的时候,却引发了Out of Memory错误,为什么呢?rnrn代码片段:rnrn//// Classes and Interfacerntypern TPerson = class;rn TPersonalCustomer = class;rn ICustomer = interfacern function GetDisplayName: WideString; stdcall;rn property DisplayName: WideString read GetDisplayName;rn end;rnrn TPerson = class(TInterfacedObject, IInterface)rn privatern FName: WideString;rn procedure SetName(const Value: WideString);rn publishedrn property Name: WideString read FName write SetName;rn end;rnrn TPersonalCustomer = class(TPerson, ICustomer)rn privatern FNoshow: Boolean;rn publicrn function GetDisplayName: WideString; stdcall;rn publishedrn property Name;rn end;rnrnimplementationrnrnuses SysUtils,rn Dialogs;rnrnprocedure TPerson.SetName(const Value: WideString);rnbeginrn //ShowMessage(Value);rn FName := Value; <-- out of memory herernend;rnrnfunction TPersonalCustomer.GetDisplayName: WideString;rnbeginrn Result :='客户'+ Name;rnend;rnrnend.rnrnrn////// codes in the formrnrnprocedure TForm1.btn1Click(Sender: TObject);rnvarrn Customer : ICustomer;rnbeginrn Customer := TPersonalCustomer.Create;rn TPerson(Customer).Name := widestring(edt1.Text );rn ShowMessage(Customer.DisplayName);rn Customer := nil;rnend;rnrn
js out of memory
[code=JScript]rnrnrn 网页特效-CSS特效-始终固定在网页顶部的横条(一)rn rnrnrn rn rn rnrnrnrn rn rn rnrnrn rnrn[/code]
out of memory问题
在多线程的环境中使用idhttp请求数据rn以debug的方式,程序跑一会儿就提示“out of memory”,程序停在idhttp->Get()rn使用的bcb版本为xe2rn在windows 任务管理器中查看 程序占用内存也没有一直在增长rn请问跟函数返回的类型是AnsiString及idhttp get方式相关吗?
Fatal error: Out of memory
Fatal error: Out of memoryrnrn像这种错误一般是什么原因导致的呢?rn
weblogic out of memory error
部署一个项目 运行时 页面会出现 out of flow 字样rn后台报错:rnrnjava.lang.Throwable: Compilation of D:\weblogic\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver__appsdir_DefaultWebApp_dir_DefaultWebApp\jsp_servlet\_global\__errorpage500.java failedrnrnrnThe system is out of resources.rnConsult the following stack trace for details.rnjava.lang.OutOfMemoryErrorrnrn at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:382)rn at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:463)rn at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)rn at cn.com.jdls.foundation.web.EncodingFilter.doFilter(Unknown Source:37)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)rn at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:326)rn at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:531)rn at weblogic.servlet.internal.WebAppServletContext.handleException(WebAppServletContext.java:4056)rn at weblogic.servlet.internal.WebAppServletContext.handleThrowableFromInvocation(WebAppServletContext.java:3834)rn at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3780)rn at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)rn at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)rn at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)rn这个错误呢 我初步 通过强制刷新页面解决的,但是这不是根本的解决办法,不知道各位高手有什么好的方法没?rn我也试图加大weblogic 的那个参数:rn在commEnv.cmd中参数 更改为:rn:bearnif "%PRODUCTION_MODE%" == "true" goto bea_prod_modernset JAVA_VM=-jrockitrn[color=#FF0000]set MEM_ARGS=-Xms1024m -Xmx1024m[/color]rnset JAVA_OPTIONS=%JAVA_OPTIONS% -Xverify:nonerngoto continuern:bea_prod_modernset JAVA_VM=-jrockitrn[color=#FF0000]set MEM_ARGS=-Xms1024m -Xmx1024m[/color]rngoto continuernrnrn:sunrnif "%PRODUCTION_MODE%" == "true" goto sun_prod_modernset JAVA_VM=-clientrn[color=#FF0000]set MEM_ARGS=-Xms1024m -Xmx1024m -XX:MaxPermSize=512m[/color]rnset JAVA_OPTIONS=%JAVA_OPTIONS% -Xverify:nonerngoto continuern:sun_prod_modernset JAVA_VM=-serverrn[color=#FF0000]set MEM_ARGS=-Xms1024m -Xmx1024m -XX:MaxPermSize=512m[/color]rngoto continuern(由于不知道具体改哪个选项,所以我都给改成一样的了)rn在startWeblogic.cmd中也改了:rncall "%WL_HOME%\common\bin\commEnv.cmd"rnrnset MEM_ARGS=-Xms1024m -Xmx1024m -XX:MaxPermSize=512mrnrnrn但是 好像没有效果!!启动,重新加载这个项目,然后运行的时候还是报这个错误!!!rnrnrn同一个项目在进行excel表格操作的时候 也报了一个错误rnjava.lang.Throwable: org/apache/poi/hssf/usermodel/HSSFWorkbookrn at cn.com.jdlssoft.zhns.gs.web.common.CgsExportUtil.newWorbook(CgsExportUtil.java:237)rn at cn.com.jdlssoft.zhns.gs.web.common.CgsExportUtil.exportExcel(CgsExportUtil.java:105)rn at cn.com.jdlssoft.zhns.gs.web.common.CgsBaseSearchAction.export(CgsBaseSearchAction.java:74)rn at cn.com.jdlssoft.zhns.gs.web.cgs.sdycgl.actions.YcqkcxAction.executeExportData(YcqkcxAction.java:157)rn at cn.com.jdlssoft.zhns.gs.web.cgs.sdycgl.actions.YcqkcxAction.execute(YcqkcxAction.java:70)rn at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)rn at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)rn at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)rn at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)rn at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)rn at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)rn at cn.com.jdls.foundation.web.EncodingFilter.doFilter(Unknown Source:37)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)rn at cn.com.jdlssoft.rbac.filter.AcceptFilter.doFilter(AcceptFilter.java:84)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)rn at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)rn at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)rn at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)rn at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)rn at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)rn at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)rn at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)rn这个问题,我很是纳闷,因为该用到的jar包都在,而且也加载到weblogic中了,怎么还说没有定义呢? 难道weblogic还要对编译好的文件重新编译??即使是那样,也应该会顺利编译通过的啊,也不应该会出现这个错误啊?rnrn期待高手解答……!rnrnrnrnrn
out of memory求助,急!
for i:=0 to 10 dorn for j:=0 to 10 dorn beginrn tao1[0][i]:=inttao;rn tao2[i][j]:=inttao;rn end;rnrn partsum:=0;rn for i:=0 to 10 dorn beginrn partsum:=partsum+exp(alph*ln(tao1[0][i]));rn end;rn for i := 0 to 10 dorn beginrn pper[i]:=exp(alph*ln(tao1[0][i]))/partsum;rn memo1.Lines.Add(floattostr(pper[i]));rn end;rnrn报错out of memory,怎么解决!?
报错:Out of memory at line
做网站时在ie8浏览器下,报错:Out of memory at line:1852rnrn求解答!rnrn
out of memory 问题
[code=JScript]rnfunction rotateImage()rn var images = new Array();rn rn for(var i = 0; i<4;i++)rn images[i] = new Image();rn images[i].src ="image/pic"+i+".jpg";rn rn run(1,images); rnrnfunction run(index ,images)rn [color=#FF0000]但如果在加alert();查看的时候又可以[/color]rn window.document.img1.src=images[index].src;rn index++;rn if(index > 3)rn index = 0rn rn setTimeout(run(index,images),1000);rn rnrn[/code]rn出现out of memory at line :12
out of memory的问题
在dos下用scandisk d: rn在检查file system时,出现在out of momery,不能成功scandisk。rn如何解决这个问题,各位大吓帮忙
为什么会“Out of memory?”
我的程序make成exe文件后复制到别的机子上,为什么总是显示“Run Time error 7:Out of memory?”
全局变量 造成 Out of memory
我将一个字符串(200个字符左右)循环写入一个全局变量,一段时间后会出现异常(“Out of memory”)。而且每一次出现异常时的循环次数都不一样,像是与现在运行的进程数有关,很想弄清楚是什么原因造成的异常?请大家帮帮忙!
Out of Memory 问题!!
我现在用http上传文件,tomcat作server,结果上传几十M就out of memory了,加上-Xmx512M启动tomcat也没有用,知道的帮帮忙阿,项目很急!谢了!
相关热词 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池 c#5.0 安装程序 c# 分页算法