loadrunner本身出现内存不够的情况,请高手帮忙解决,谢谢!
场景用一台机子跑了80个虚拟用户, 错误提示 :Action.c(10): Error -26000: Not enough memory (3070245 bytes) for a new escaped bufferin LrwUtilSubmitDataBody::MakeAdditionalRoomForOKloadrunner版本8.1 ,loadrunner安装机的操作系统是XP,已在注册表中修改过线程限制 。 使用web(http/html)协议,下面的脚本的省略号是我删除了很多内容,因为提交的是一个大小为2M的文件,上传不方便,我用省略号给替代了。
Action()
{
web_reg_find("SaveCount=result2",
"Text=点击阅读邮件,查阅加密邮件",
LAST);
web_url("zdmls7.html",
"URL=http://192.168.1.170/zdm/zdmls7.html",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t17.inf",
"Mode=HTTP",
LAST);
if (atoi(lr_eval_string("{result2}")) > 0)
{
lr_output_message(" view page successfully.");
}
else
{
lr_error_message("failed to view page");
return(0);
}
lr_think_time(5);
web_reg_find("SaveCount=result1",
"Text=接收人私钥列表",
LAST);
web_submit_data("decryptReadMail.do",
"Action=http://192.168.1.170/zdm/decryptReadMail.do?method=decryptReaderList",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.1.170/zdm/zdmls7.html",
"Snapshot=t18.inf",
"Mode=HTTP",
ITEMDATA,
"Name=ZFRversion", "Value=3", ENDITEM,
"Name=ZFRtype", "Value=OlymZFRMsg", ENDITEM,
"Name=ZDMdata1", "Value=\r\nMIMfCJkGCSqGSIb3DQEHBKCDHwiJMIMfCIQCAQExggV+oYIBFDCCARACAQOgBqAE\r\nBAIFADBYBgkqgRyG7x0BAgEwSzAqBgoqgRyG7x0BAgIFMBwwFAYHKIGMcQIFATAJ\r\nBgUrDgMCGgUAAgEJAgEkMB0GByiBjHECAwMwEjANBgkqgRyG7x0FAQEFAAIBEDCB\r\nqDCBpYA8BDowOAIBAQQGYWExMzU4AgEBBgkqgRyG7x0BAQMwHQQFUkVDUD0EFEdU\r\nTUFJTFRFU1QxMkAxMjYuQ09NBGUCYXj9aq6DCRzEsqs+YM/ReqBl+T3VH/U1zTWK\r\nJemXvV4OcKq8/lXbVL3/2hiT/gS9BiRcIhj6160D9cZ4q911WMBEaeoMVi5XxVnD\r\nM0cg9vTpAB+kRPcL2oSMvKYkchOP3iy3iqGCARYwggESAgEDoAagBAQCBQAwWAYJ\r"
.................................................................
..................................................................
"Name=ZFRDesignatedRecipient", "Value=", ENDITEM,
"Name=ZFRsubmit", "Value=阅读邮件", ENDITEM,
LAST);
if (atoi(lr_eval_string("{result1}")) > 0)
{
lr_output_message("Decrypt to read recipient list successful.");
}
else
{
lr_error_message("Decrypt to read recipient list failed");
return(0);
}
web_concurrent_start(NULL);
web_url("styles.css",
"URL=http://192.168.1.170/css/zdm/styles.css",
"Resource=1",
"RecContentType=text/css",
"Referer=http://192.168.1.170/zdm/decryptReadMail.do?method=decryptReaderList",
"Snapshot=t19.inf",
LAST);
web_url("style.css",
"URL=http://192.168.1.170/css/zdm/style.css",
"Resource=1",
"RecContentType=text/css",
"Referer=http://192.168.1.170/zdm/decryptReadMail.do?method=decryptReaderList",
"Snapshot=t20.inf",
LAST);
web_concurrent_end(NULL);
web_url("icon_8.gif",
"URL=http://192.168.1.170/images/reg/icon_8.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.170/zdm/decryptReadMail.do?method=decryptReaderList",
"Snapshot=t21.inf",
LAST);
return 0;
}
[ 本帖最后由 loadrunner_1 于 2009-12-4 15:20 编辑 ]
页:
[1]