Perl Builder中内存不足 [英] out of memory in Perl Builder

查看:107
本文介绍了Perl Builder中内存不足的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个词干计划,该程序从* .trec文件中读取,以获取< title>< / title>中的查询词。 tag,然后生成查询单词并将结果输出到另一个* .trec文件。但是perl builder承诺内存不足:

展开 | 选择 | Wrap | 行号

解决方案

嗯,你不是''将文件粘贴到一个数组中,这样文件的大小就不会那么大了。


它让我想知道你有多少系统内存以及你的机器上运行了多少程序。如果不是这样,那么你可能需要把它带到PerlBuilder论坛,因为它不在Perl编码的范围之内。


问候,


Jeff


**注意:你是否试图从Perl Builder运行它?如果是这样,为什么不从命令行运行脚本呢?我个人从不相信程序来运行我的Perl脚本。我宁愿翻译直接做,没有中间人可以这么说。如您所见,他们似乎总能找到导致问题的方法。


问候,


Jeff


Jeff .... Perl Builder是一个IDE(它的我使用的那个),它使用perl来运行你的perl程序,就像任何IDE一样。


那个脚本看起来会占用很少的内存,所以我不知道为什么它除非您使用的模块存在一些已知问题,否则耗尽记忆。 WordNet :: QueryData查询数据库,这可能是发生内存问题的地方。不知道该怎么建议。



Jeff .... Perl Builder是一个IDE(它是我使用的),它使用perl运行与任何IDE相同的perl程序。



哦,好的。对不起,我不知道。我倾向于手工编写所有代码并从命令行运行。如果我使用IDE,我使用Eclipse(Perl的EPIC插件)或Komodo。两者都很棒。


嗯,现在我知道了。 :)


Hi, I am writing a word stemming program, the program reads from a *.trec file to get query words in <title></title> tag, then stems the query words and output the result to another *.trec file. But perl builder promts "out of memory":

Expand|Select|Wrap|Line Numbers

解决方案

Well, you aren''t slurping the file into an array so the size of the file shouldn''t make a difference so much.

It makes me wonder how much system memory you have and how many programs are running on your machine. If that it not it, then you will probably need to take this to the PerlBuilder forums as it would be outside of the realms of Perl coding.

Regards,

Jeff

**Note: are you trying to run this from Perl Builder? If so, why not run the script from the command line instead? I personally never trust a program to run my Perl script. I would rather the interpreter do it directly, without a middle man so to speak. As you can see, they always seem to find a way to cause issues.

Regards,

Jeff


Jeff.... Perl Builder is an IDE (its the one I use), it uses perl to run your perl programs same as any IDE.

That script looks like it would use very little memory so I don''t know why its running out of memeory unless that module you are using has some known issues. WordNet::QueryData queries a database, that is possibly where the memory problem is happening. Not sure what to suggest though.


Jeff.... Perl Builder is an IDE (its the one I use), it uses perl to run your perl programs same as any IDE.

Oh, ok. Sorry, wasn''t aware. I tend to hand code everything and run from the command line. If I do use an IDE, I use either Eclipse (with EPIC plugin for Perl) or Komodo. Both are awesome.

Well, now I know. :)


这篇关于Perl Builder中内存不足的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆