{"id":38497,"date":"2025-05-20T16:33:12","date_gmt":"2025-05-20T08:33:12","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/38497.html"},"modified":"2025-05-20T16:33:12","modified_gmt":"2025-05-20T08:33:12","slug":"apache-jmeter-api-%e6%8e%a5%e5%8f%a3%e5%8e%8b%e6%b5%8b%e6%8a%80%e6%9c%af%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/38497.html","title":{"rendered":"Apache JMeter API \u63a5\u53e3\u538b\u6d4b\u6280\u672f\u6307\u5357"},"content":{"rendered":"<\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\n<ul>\n<li>\u524d\u8a00<\/li>\n<li>\u6280\u672f\u79ef\u7d2f<\/li>\n<li>\n<ul>\n<li>JMeter \u7b80\u4ecb<\/li>\n<li>\u9002\u7528\u573a\u666f<\/li>\n<li>JMeter \u6838\u5fc3\u7ec4\u4ef6<\/li>\n<\/ul>\n<\/li>\n<li>\u5b89\u88c5\u4e0e\u914d\u7f6e<\/li>\n<li>\u7ebf\u7a0b\u7ec4\u538b\u6d4b<\/li>\n<li>\u9010\u6b65\u52a0\u538b\u538b\u6d4b<\/li>\n<li>\n<ul>\n<li>\u5b89\u88c5\u76f8\u5e94jmeter \u63d2\u4ef6<\/li>\n<li>\u521b\u5efa\u6d4b\u8bd5\u8ba1\u5212<\/li>\n<li>\u751f\u6210\u538b\u6d4bHTML<\/li>\n<\/ul>\n<\/li>\n<li>\u603b\u7ed3<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>\u524d\u8a00<\/h3>\n<p>Apache JMeter \u662f\u4e00\u6b3e\u5f00\u6e90\u7684\u6027\u80fd\u6d4b\u8bd5\u5de5\u5177&#xff0c;\u4e3b\u8981\u7528\u4e8e\u5bf9 Web \u5e94\u7528\u3001API \u63a5\u53e3\u3001\u6570\u636e\u5e93\u7b49\u8fdb\u884c\u8d1f\u8f7d\u548c\u538b\u529b\u6d4b\u8bd5\u3002\u672c\u6307\u5357\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528 JMeter \u8fdb\u884c\u538b\u6d4b\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520083255-682c3e37c8ace.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u6280\u672f\u79ef\u7d2f<\/h3>\n<h4>JMeter \u7b80\u4ecb<\/h4>\n<p>\u4ec0\u4e48\u662f JMeter Apache JMeter \u662f\u7531 Apache \u5f00\u53d1\u7684 Java \u684c\u9762\u5e94\u7528\u7a0b\u5e8f&#xff0c;\u652f\u6301\u591a\u7ebf\u7a0b\u6d4b\u8bd5&#xff0c;\u53ef\u4ee5\u6a21\u62df\u9ad8\u5e76\u53d1\u7528\u6237\u8bbf\u95ee\u7cfb\u7edf\u7684\u884c\u4e3a\u3002<\/p>\n<h4>\u9002\u7528\u573a\u666f<\/h4>\n<p>HTTP\/HTTPS \u8bf7\u6c42\u6027\u80fd\u6d4b\u8bd5 Web Services&#xff08;SOAP\/REST&#xff09;\u6d4b\u8bd5 \u6570\u636e\u5e93\u6027\u80fd\u6d4b\u8bd5&#xff08;\u901a\u8fc7 JDBC&#xff09; FTP\u3001LDAP\u3001SMTP\u3001POP3\u3001IMAP \u7b49\u534f\u8bae\u6d4b\u8bd5 \u5206\u5e03\u5f0f\u6d4b\u8bd5&#xff08;\u8de8\u673a\u5668\u6267\u884c&#xff09;<\/p>\n<h4>JMeter \u6838\u5fc3\u7ec4\u4ef6<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520083255-682c3e37dbc6f.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u5b89\u88c5\u4e0e\u914d\u7f6e<\/h3>\n<p>\u5b89\u88c5\u524d\u63d0 \u5b89\u88c5 JDK 1.8 \u6216\u66f4\u9ad8\u7248\u672c \u8bbe\u7f6e JAVA_HOME \u73af\u5883\u53d8\u91cf \u4e0b\u8f7d\u4e0e\u542f\u52a8 \u5b98\u7f51\u5730\u5740&#xff1a;https:\/\/jmeter.apache.org \u89e3\u538b\u4e0b\u8f7d\u5305\u540e&#xff0c;\u8fdb\u5165 bin \u76ee\u5f55&#xff1a; Windows&#xff1a;\u8fd0\u884c jmeter.bat Linux\/Mac&#xff1a;\u8fd0\u884c sh jmeter.sh<\/p>\n<h3>\u7ebf\u7a0b\u7ec4\u538b\u6d4b<\/h3>\n<p>\u8be5\u65b9\u5f0f\u76f4\u63a5\u521b\u5efa \u7ebf\u7a0b\u7ec4&#xff0c;\u7136\u540e\u628a\u8bf7\u6c42&#xff0c;\u8bf7\u6c42\u5934&#xff0c;\u62a5\u544a&#xff0c;TPS\u538b\u6d4b\u56fe\u7b49\u90fd\u521b\u5efa\u51fa\u6765&#xff0c;\u7528\u6765\u53ef\u89c6\u5316\u89c2\u5bdf\u538b\u6d4b\u8fc7\u7a0b\u6570\u636e&#xff0c;\u541e\u5410\u91cf\u7684\u503c&#xff0c;\u53ef\u4ee5\u5728\u805a\u5408\u62a5\u544a\u67e5\u770b\u3002\u8fd9\u79cd\u65b9\u6cd5\u6bd4\u8f83\u5e38\u7528&#xff0c;\u5728\u7ebf\u7a0b\u7ec4\u4e2d\u8fdb\u884c\u8bbe\u7f6e\u7ebf\u7a0b\u6570&#xff0c;\u6bcf\u79d2\u6267\u884c&#xff0c;\u90a3\u4e48\u8fd9\u4e2a\u7ebf\u7a0b\u6570\u4e00\u822c\u5c31\u662f\u4e1a\u52a1\u8981\u6c42\u7684\u5e76\u53d1\u7528\u6237\u6570&#xff0c;\u4e5f\u5c31\u662f\u540c\u4e00\u65f6\u523b&#xff0c;\u80fd\u652f\u6301\u591a\u5c11\u7528\u6237\u8bf7\u6c42&#xff0c;\u57fa\u4e8e\u7684\u662f\u7cfb\u7edf\u7684\u7528\u6237\u91cf&#xff0c;\u4e1a\u52a1\u7684\u8981\u6c42&#xff0c;\u6765\u6307\u5b9a\u5177\u4f53\u7684\u6570\u503c\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520083256-682c3e3808f48.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520083256-682c3e38cecde.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u9010\u6b65\u52a0\u538b\u538b\u6d4b<\/h3>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u9002\u5408\u627e\u5230\u7cfb\u7edf\u7684\u6700\u5927\u5e76\u53d1\u91cf&#xff0c;\u9700\u8981\u6211\u4eec\u5148\u505a\u8d1f\u8f7d\u6d4b\u8bd5(\u9010\u6b65\u589e\u52a0\u5e76\u53d1\u7528\u6237\u6570&#xff0c;\u627e\u51fa\u88ab\u6d4b\u7cfb\u7edf\u7684\u6700\u5927\u53ef\u63a5\u53d7\u7684\u5e76\u53d1\u7528\u6237\u6570&#xff0c;\u5e76\u8003\u5bdf\u7cfb\u7edf\u6027\u80fd\u7684\u53d8\u5316)&#xff0c;\u901a\u8fc7\u9010\u6b65\u52a0\u538b\u627e\u5230\u6700\u5927\u5e76\u53d1\u7528\u6237\u6570\u3002 \u6700\u5927\u5e76\u53d1\u7528\u6237\u6570\u8bc4\u5224\u6807\u51c6&#xff1a; 1.\u51fa\u73b0\u8fde\u7eed\u62a5\u9519 2.\u5e73\u5747\u54cd\u5e94\u65f6\u95f4\u8d85\u8fc73\u79d2(3\u79d2\u662f\u884c\u4e1a\u6807\u51c6) 3.tps\u51fa\u73b0\u4e0b\u964d\u8d8b\u52bf<\/p>\n<h4>\u5b89\u88c5\u76f8\u5e94jmeter \u63d2\u4ef6<\/h4>\n<p>\u5b89\u88c5jmeter \u7ba1\u7406\u63d2\u4ef6&#xff1a;\u4e0b\u8f7d\u5730\u5740&#xff1a;https:\/\/jmeter-plugins.org\/install\/Install\/&#xff0c;\u5c06\u4e0b\u8f7d\u4e0b\u6765\u7684jar\u5305\u653e\u5230jmeter\u6587\u4ef6\u5939\u4e0b\u7684lib\/ext\u8def\u5f84\u4e0b&#xff0c;\u7136\u540e\u91cd\u542fjmeter\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520083257-682c3e39c368d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u6253\u5f00 \u9009\u9879 &#8211;&gt; Plugins Manager &#8211;&gt; \u5728Available Plugins\u4e2d\u627e\u5230Custom Thread Groups&#xff0c;jpgc &#8211; Standard Set \u5b89\u88c5\u8fd9\u4e24\u4e2a\u63d2\u4ef6&#xff0c;\u7136\u540e\u70b9\u51fb\u53f3\u4e0b\u89d2\u56fe\u6807\u8fdb\u884c\u5b89\u88c5\u91cd\u542f&#xff0c;\u5b89\u88c5\u5b8c\u6210\u540e\u5c31\u53ef\u4ee5\u5728Installer Plugins\u5217\u8868\u4e2d\u770b\u5230&#xff0c;\u90a3\u4e48\u63a5\u4e0b\u6765\u5c31\u53ef\u4ee5\u6267\u884c\u521b\u5efa\u4e00\u4e2a\u7ebf\u7a0b\u68af\u5f0f\u589e\u52a0\u7ec4\u4e86\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520083258-682c3e3a52073.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>\u521b\u5efa\u6d4b\u8bd5\u8ba1\u5212<\/h4>\n<li>\n<p>\u53f3\u952e \u6d4b\u8bd5\u8ba1\u5212 &#8211;&gt; \u6dfb\u52a0 &#8211;&gt; \u7ebf\u7a0b \u9009\u62e9\u201djp&#064;gc &#8211; Stepping Thread Group\u201c&#xff0c;\u63d2\u4ef6 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520083258-682c3e3af3acc.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u9ed8\u8ba4\u8bbe\u5b9a\u503c\u5982\u4e0b: jp&#064;gc- Stepping Thread Group\u586b\u5199\u6570\u636e&#xff0c;\u573a\u666f\u4e3a\u57285\u79d2\u5185\u589e\u52a010\u4e2a\u5e76\u53d1\u7528\u6237\u6570&#xff0c;\u5e76\u8fd0\u884c30\u79d2&#xff0c;\u518d\u7ee7\u7eed\u57285\u79d2\u5185\u589e\u52a010\u4e2a\u5e76\u53d1\u7528\u6237\u6570&#xff0c;\u91cd\u590d\u5faa\u73af&#xff0c;\u76f4\u81f3\u5e76\u53d1\u7528\u6237\u6570\u8fbe\u5230200\u4e2a\u540e\u8fd0\u884c\u811a\u672c60\u79d2\u3002\u7136\u540e\u5728\u6bcf1\u79d2\u5185\u51cf\u5c115\u4e2a\u5e76\u53d1\u7528\u6237\u6570&#xff0c;\u76f4\u5230\u51cf\u4e3a0&#xff0c;\u7ed3\u675f\u811a\u672c\u7684\u8fd0\u884c <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520083259-682c3e3b4675c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>\u6dfb\u52a0 \u53d6\u6837\u5668 &#8211;&gt; HTTP\u8bf7\u6c42 &#8211;&gt; \u521b\u5efa\u8bf7\u6c42 \u8fd9\u91cc\u6bd4\u8f83\u7b80\u5355&#xff0c;\u7c7b\u4f3cPostman <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520083259-682c3e3bdb582.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>3.\u6dfb\u52a0 \u914d\u7f6e\u5143\u4ef6 &#8211;&gt; HTTP\u4fe1\u606f\u5934\u7ba1\u7406\u5668 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520083300-682c3e3ced004.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>4.\u6dfb\u52a0 \u76d1\u542c\u5668 \u67e5\u770b\u7ed3\u679c\u6811\u3001\u6c47\u603b\u62a5\u544a\u3001\u805a\u5408\u62a5\u544a\u3001\u6c47\u603b\u56fe\u3001TPS(\u6bcf\u79d2\u4e8b\u52a1\u6570)\u3001RT(\u54cd\u5e94\u65f6\u95f4)\u3001AT(\u6d3b\u52a8\u7ebf\u7a0b) \u805a\u5408\u62a5\u544a\u53ef\u4ee5\u586b\u5199\u6570\u636e\u4fdd\u5b58\u6587\u4ef6\u548c\u4f4d\u7f6e&#xff0c;\u65b9\u4fbf\u5230\u5904HTML\u62a5\u8868 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520083301-682c3e3d75714.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u541e\u5410\u91cf\u53ef\u4ee5\u5728\u805a\u5408\u62a5\u544a\u770b\u5230&#xff0c;\u5177\u4f53\u7684\u6d4b\u8bd5\u56fe&#xff0c;\u53ef\u4ee5\u770b\u770bTPS <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520083301-682c3e3deb6ed.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>5.\u5206\u6790\u538b\u6d4b\u7ed3\u679c TPS&#xff1a; \u8fd9\u91cc\u63a5\u53e3\u5728\u6574\u4e2a\u538b\u6d4b\u9636\u6bb5\u5e76\u672a\u51fa\u73b0\u5f02\u5e38&#xff0c;\u4f46\u662f\u5728\u7ebf\u7a0b\u6570\u589e\u52a0\u5230200\u4e2a\u65f6\u5019\u8fd8\u662f\u80fd\u591f\u4fdd\u6301350TPS,\u521d\u6b65\u4f30\u8ba1\u8be5\u63a5\u53e3TPS\u4e3a350\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520083302-682c3e3eb720a.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>11\u5206\u591a\u949f\u65f6&#xff0c;\u63a5\u53e3\u7684\u54cd\u5e94\u65f6\u95f4\u4e5f\u662f\u6bd4\u8f83\u53ef\u89c2 \u6bcf\u79d2\u8bf7\u6c42\u662f600ms\u5de6\u53f3&#xff0c;\u540e\u7eed\u589e\u52a0\u7ebf\u7a0b\u6570\u5e94\u8be5\u8fd8\u4f1a\u589e\u52a0&#xff0c;\u4f46\u662f\u541e\u5410\u91cf\u5e94\u8be5\u589e\u52a0\u4e0d\u4f1a\u592a\u660e\u663e\u3002\u4e5f\u53ef\u4ee5\u589e\u52a0\u7ebf\u7a0b\u6570\u7ee7\u7eed\u538b\u6d4b&#xff0c;\u63d0\u5347\u51c6\u786e\u7387\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520083305-682c3e4134fd6.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>![\u6c47\u603b\u62a5\u544a&#xff0c;\u541e\u5410\u91cf\u5728335&#xff0c;\u8fd9\u662f\u4e00\u4e2a\u5e73\u5747\u503c&#xff0c;\u6574\u4e2a\u6d4b\u8bd5\u4e0b\u6765\u7684\u5747\u503c <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520083307-682c3e43a5de4.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0](https:\/\/i-blog.csdnimg.cn\/direct\/10ffbbc9e36d45c895a867505e307440.png)\" \/><\/p>\n<p>6\u2026\u7ed3\u8bba \u57fa\u4e8e\u4e0a\u9762\u7684\u6d4b\u8bd5\u8fc7\u7a0b&#xff0c;\u53ef\u4ee5\u5f97\u51fa\u4e00\u4e2a\u5927\u81f4\u7684\u7ed3\u8bba&#xff0c;\u8fd9\u4e2a\u63a5\u53e3\u7684\u5e76\u53d1\u91cf\u5927\u6982\u662f350\u5de6\u53f3\u3002\u5f53\u7136&#xff0c;\u672c\u6b21\u538b\u6d4b\u662f\u5728windows\u670d\u52a1\u5668\u4e0a\u8fdb\u884c&#xff0c;\u5982\u679c\u5176\u4ed6\u670d\u52a1\u5668\u53ef\u80fd\u4f1a\u6709\u7ec6\u5fae\u5dee\u5f02\u3002\u5728\u5b9e\u9645\u7684\u538b\u6d4b\u8fc7\u7a0b\u4e2d&#xff0c;\u5e94\u8be5\u591a\u6b21\u538b\u6d4b\u548c\u5206\u6790&#xff0c;\u5728\u4fdd\u8bc1\u6ca1\u6709\u5f02\u5e38\u548c\u54cd\u5e94\u65f6\u95f4\u7b26\u5408\u6807\u51c6\u7684\u60c5\u51b5\u4e0b\u5f97\u51fa\u7ed3\u8bba\u3002<\/p>\n<\/li>\n<h4>\u751f\u6210\u538b\u6d4bHTML<\/h4>\n<p>\u7531\u4e8e\u6211\u4eec\u5728\u521b\u5efa\u6d4b\u8bd5\u8ba1\u5212\u65f6\u5019\u5f15\u5165\u4e86\u805a\u5408\u62a5\u544a&#xff0c;\u5e76\u4e14\u586b\u5165\u4e86\u6570\u636e\u4fdd\u5b58\u6587\u4ef6\u540d\u79f0&#xff0c;\u73b0\u5728\u53ef\u4ee5\u76f4\u63a5\u8fdb\u884c\u6570\u636e\u5bfc\u51faHTML\u3002 1.\u5bfc\u822a\u680f \u5de5\u5177 &#8211;&gt; Generate-HTML report <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520083308-682c3e4470351.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>2.\u9009\u62e9\u6570\u636e\u6587\u4ef6\u53ca\u62a5\u544a\u4fdd\u5b58\u8def\u5f84 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520083308-682c3e44adb73.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>3.\u751f\u6210HTML\u62a5\u544a \u76f4\u63a5\u70b9\u51fb\u751f\u6210\u62a5\u544a\u6309\u94ae&#xff0c;\u63d0\u793a\u751f\u6210\u5b8c\u6210\u5373\u53ef\u3002\u968f\u5373\u53ef\u8fdb\u5165\u62a5\u544a\u4fdd\u5b58\u76ee\u5f55\u67e5\u770bHTML\u62a5\u544a&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520083309-682c3e4528be7.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u70b9\u51fbindex.html\u53ef\u4ee5\u8fdb\u5165\u67e5\u770b\u62a5\u544a <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520083309-682c3e455a0bc.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u603b\u7ed3<\/h3>\n<p>Apache JMeter \u538b\u6d4b\u63a5\u53e3\u8fd8\u662f\u6bd4\u8f83\u7b80\u5355\u7684&#xff0c;\u4e3b\u8981\u5206\u4e3a\u7ebf\u7a0b\u7ec4\u538b\u6d4b\u548c\u9010\u6b65\u52a0\u538b\u538b\u6d4b\u3002\u5982\u679c\u6211\u4eec\u9700\u8981\u9a8c\u8bc1\u63a5\u53e3\u7684\u6700\u5927\u5e76\u53d1\u91cf\u63a8\u8350\u9009\u62e9\u9010\u6b65\u52a0\u538b\u538b\u6d4b&#xff0c;\u8fd9\u6837\u5bf9\u63a5\u53e3\u7684\u5e76\u53d1\u91cf\u4f1a\u6709\u4e2a\u660e\u786e\u7684\u7ed3\u8bba\u3002\u5f53\u524d&#xff0c;\u5982\u679c\u80fd\u591f\u9884\u4f30\u63a5\u53e3\u5e76\u53d1\u91cf\u5219\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u7ebf\u7a0b\u7ec4\u4ee5\u6700\u5927\u5e76\u53d1\u91cf\u538b\u6d4b&#xff0c;\u8fd9\u6837\u4f1a\u7b80\u5355\u5f88\u591a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb949\u6b21\uff0c\u70b9\u8d5e21\u6b21\uff0c\u6536\u85cf21\u6b21\u3002Apache JMeter \u538b\u6d4b\u63a5\u53e3\u8fd8\u662f\u6bd4\u8f83\u7b80\u5355\u7684\uff0c\u4e3b\u8981\u5206\u4e3a\u7ebf\u7a0b\u7ec4\u538b\u6d4b\u548c\u9010\u6b65\u52a0\u538b\u538b\u6d4b\u3002\u5982\u679c\u6211\u4eec\u9700\u8981\u9a8c\u8bc1\u63a5\u53e3\u7684\u6700\u5927\u5e76\u53d1\u91cf\u63a8\u8350\u9009\u62e9\u9010\u6b65\u52a0\u538b\u538b\u6d4b\uff0c\u8fd9\u6837\u5bf9\u63a5\u53e3\u7684\u5e76\u53d1\u91cf\u4f1a\u6709\u4e2a\u660e\u786e\u7684\u7ed3\u8bba\u3002\u5f53\u524d\uff0c\u5982\u679c\u80fd\u591f\u9884\u4f30\u63a5\u53e3\u5e76\u53d1\u91cf\u5219\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u7ebf\u7a0b\u7ec4\u4ee5\u6700\u5927\u5e76\u53d1\u91cf\u538b\u6d4b\uff0c\u8fd9\u6837\u4f1a\u7b80\u5355\u5f88\u591a\u3002<\/p>\n","protected":false},"author":2,"featured_media":38478,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[331,135,3380,719],"topic":[],"class_list":["post-38497","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-apache","tag-jmeter","tag-3380","tag-719"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Apache JMeter API \u63a5\u53e3\u538b\u6d4b\u6280\u672f\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/38497.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Apache JMeter API \u63a5\u53e3\u538b\u6d4b\u6280\u672f\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb949\u6b21\uff0c\u70b9\u8d5e21\u6b21\uff0c\u6536\u85cf21\u6b21\u3002Apache JMeter \u538b\u6d4b\u63a5\u53e3\u8fd8\u662f\u6bd4\u8f83\u7b80\u5355\u7684\uff0c\u4e3b\u8981\u5206\u4e3a\u7ebf\u7a0b\u7ec4\u538b\u6d4b\u548c\u9010\u6b65\u52a0\u538b\u538b\u6d4b\u3002\u5982\u679c\u6211\u4eec\u9700\u8981\u9a8c\u8bc1\u63a5\u53e3\u7684\u6700\u5927\u5e76\u53d1\u91cf\u63a8\u8350\u9009\u62e9\u9010\u6b65\u52a0\u538b\u538b\u6d4b\uff0c\u8fd9\u6837\u5bf9\u63a5\u53e3\u7684\u5e76\u53d1\u91cf\u4f1a\u6709\u4e2a\u660e\u786e\u7684\u7ed3\u8bba\u3002\u5f53\u524d\uff0c\u5982\u679c\u80fd\u591f\u9884\u4f30\u63a5\u53e3\u5e76\u53d1\u91cf\u5219\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u7ebf\u7a0b\u7ec4\u4ee5\u6700\u5927\u5e76\u53d1\u91cf\u538b\u6d4b\uff0c\u8fd9\u6837\u4f1a\u7b80\u5355\u5f88\u591a\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/38497.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-20T08:33:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520083255-682c3e37c8ace.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/38497.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/38497.html\",\"name\":\"Apache JMeter API \u63a5\u53e3\u538b\u6d4b\u6280\u672f\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-20T08:33:12+00:00\",\"dateModified\":\"2025-05-20T08:33:12+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/38497.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/38497.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/38497.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Apache JMeter API \u63a5\u53e3\u538b\u6d4b\u6280\u672f\u6307\u5357\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Apache JMeter API \u63a5\u53e3\u538b\u6d4b\u6280\u672f\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/38497.html","og_locale":"zh_CN","og_type":"article","og_title":"Apache JMeter API \u63a5\u53e3\u538b\u6d4b\u6280\u672f\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb949\u6b21\uff0c\u70b9\u8d5e21\u6b21\uff0c\u6536\u85cf21\u6b21\u3002Apache JMeter \u538b\u6d4b\u63a5\u53e3\u8fd8\u662f\u6bd4\u8f83\u7b80\u5355\u7684\uff0c\u4e3b\u8981\u5206\u4e3a\u7ebf\u7a0b\u7ec4\u538b\u6d4b\u548c\u9010\u6b65\u52a0\u538b\u538b\u6d4b\u3002\u5982\u679c\u6211\u4eec\u9700\u8981\u9a8c\u8bc1\u63a5\u53e3\u7684\u6700\u5927\u5e76\u53d1\u91cf\u63a8\u8350\u9009\u62e9\u9010\u6b65\u52a0\u538b\u538b\u6d4b\uff0c\u8fd9\u6837\u5bf9\u63a5\u53e3\u7684\u5e76\u53d1\u91cf\u4f1a\u6709\u4e2a\u660e\u786e\u7684\u7ed3\u8bba\u3002\u5f53\u524d\uff0c\u5982\u679c\u80fd\u591f\u9884\u4f30\u63a5\u53e3\u5e76\u53d1\u91cf\u5219\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u7ebf\u7a0b\u7ec4\u4ee5\u6700\u5927\u5e76\u53d1\u91cf\u538b\u6d4b\uff0c\u8fd9\u6837\u4f1a\u7b80\u5355\u5f88\u591a\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/38497.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-20T08:33:12+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250520083255-682c3e37c8ace.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/38497.html","url":"https:\/\/www.wsisp.com\/helps\/38497.html","name":"Apache JMeter API \u63a5\u53e3\u538b\u6d4b\u6280\u672f\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-20T08:33:12+00:00","dateModified":"2025-05-20T08:33:12+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/38497.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/38497.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/38497.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Apache JMeter API \u63a5\u53e3\u538b\u6d4b\u6280\u672f\u6307\u5357"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/38497","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=38497"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/38497\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/38478"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=38497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=38497"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=38497"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=38497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}