我使用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文檔中有描述?
在此先感謝。
馬丁
感謝您的鏈接。你在這種情況下看到過這個錯誤嗎?當應用於流程時意味着什麼? –