文件太大而无法食

编程入门 行业动态 更新时间:2024-10-23 08:34:43
本文介绍了文件太大而无法食的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

所以...我正在生成查询,然后将一个特别长的查询粘贴到eclipse中,eclipse遇到了堆错误,然后崩溃了.我以为没什么大不了的,我可以回去删除一堆,除了...每次我尝试查看该文件时,eclipse都会崩溃.堆错误或gc开销限制错误.我打算只从日食中删除它,但是我真的很想知道是否有任何聪明的方法可以解决这个问题.不到14兆,我真的不认为日食会带来问题,为什么有见识呢?

So... I was generating queries and then I pastes one particularly long one into eclipse, eclipse encountered a heap error and then crashed. I thought, no big deal, I can just go back in and delete a bunch, except for... every time I try to look at the file now eclipse will just crash. Either a heap error or a gc overhead limit error. I plan on just deleting this from outside eclipse, but I really want to know if there are any clever ways of attacking this problem. It's less than 14 megs, and I didn't really think that eclipse would have a problem with it, any insights on why?

推荐答案

首先,请确保您正在调用通用文本编辑器.可以使用扩展名.txt来命名文件,或者确保您没有与该文件类型相关联的类似SQL编辑器之类的文件. (签入窗口|首选项|常规|编辑器|文件关联).另一种可能性是右键单击文件,选择打开方式..",然后选择文本编辑器".

First, make sure you are invoking a generic text editor. Either name the file with an extension of .txt, or make sure you don't have something like an SQL editor associated with the file type. (Check in Window | Preferences | General | Editors | File Associations). Another possibility is to right-click the file, choose Open With.., then choose 'Text Editor'.

第二,您可能需要使用更多的JVM Heap来启动Eclipse,具体取决于工作空间中的其他内容.为此,您可以在调用中添加命令行参数(eclipse -vmargs -Xmx1000M),或者编辑eclipse.ini.您可以在以下位置阅读更多详细信息 wiki.eclipse/FAQ_How_do_I_increase_the_heap_size_available_to_Eclipse%3F

Second, you might need to start Eclipse with a bit more JVM Heap, depending on what else is in the workspace. You do this by either adding command line arguments to your invocation (eclipse -vmargs -Xmx1000M), or editing your eclipse.ini. You can read more details at wiki.eclipse/FAQ_How_do_I_increase_the_heap_size_available_to_Eclipse%3F

更多推荐

文件太大而无法食

本文发布于:2023-11-29 16:40:07,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1646970.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:太大   文件

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!