所以...我正在生成查询,然后将一个特别长的查询粘贴到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
更多推荐
文件太大而无法食
发布评论