我使用OpenSTA对Erlang应用程序进行性能测试。测试运行100个虚拟用户。在某些时候,以下错误开始弹出:Yaws进程死亡
Yaws process died: {{badmatch,{error,eacces}},
[{yaws_server,ut_read,1},
{yaws_server,deliver_dyn_file,5},
{yaws_server,aloop,3},
{yaws_server,acceptor0,2},
{proc_lib,init_p_do_apply,3}]}
测试继续运行。我无法找到有关此错误的信息。 eacces
的意思是Error accessing a resource
?
编辑:由于@Muzaaya Joshua
通话file:read_file(UT#urltype.fullpath)
崩溃的功能ut_read(UT)
指出。我重新编译了模块并打印了上下文。该错误是eacces
和UT
认为:
{urltype,yaws,
{file_info,14088,regular,read_write,
{{2011,9,13},{11,51,42}},
{{2011,10,17},{17,59,44}},
{{2011,3,16},{13,18,58}},
33206,1,3,0,0,0,0},
"/handler.yaws",
"c:/Temp/harmony/script/../www/handler.yaws",
"/",undefined,undefined,"text/html",
"/handler.yaws",undefined}
此文件handler.yaws
是我们的应用程序的入口点,被称为在每次请求。当我用100或更少的虚拟用户运行测试时,我没有看到这些错误。那么怎么可能是Missing permission for reading the file, or for searching one of the parent directories.
,因为错误在read_file文档中有描述?
在此先感谢。
马丁
感谢您的链接。你在这种情况下看到过这个错误吗?当应用于流程时意味着什么? –