{"id":1782,"date":"2023-04-26T19:03:57","date_gmt":"2023-04-26T10:03:57","guid":{"rendered":"https:\/\/mifmif.mydns.jp\/masterkudo\/?p=1782"},"modified":"2023-04-26T19:03:57","modified_gmt":"2023-04-26T10:03:57","slug":"post-1782","status":"publish","type":"post","link":"https:\/\/mifmif.mydns.jp\/masterkudo\/?p=1782","title":{"rendered":"\u30de\u30a4\u30f3\u30af\u30e9\u30d5\u30c8\u30b5\u30fc\u30d0\u30fc\uff08JAVA\u7248\uff09\u306e3\u30b5\u30fc\u30d0\u30fc\u5316\uff082\u53f0\u306ePC\u3067\uff09Make 3 servers of Minecraft server (JAVA version) (on 2 PCs)"},"content":{"rendered":"<p>\u3000\u5b9f\u969b\u306b\u308f\u304b\u3063\u305f\u3068\u3053\u308d\u3067\u3059\u3002\u3053\u306e\u30b5\u30fc\u30d0\u3067\u306f2\u540d\u3067\uff11GB\uff08JAVA\u7248\uff09\u3068\u3044\u3046\u6307\u6a19\u304c\u3042\u308b\u3053\u3068\u3002\u305d\u308c\u304b\u3089\u3001TPS\u304c20\u304c\u4e0a\u9650\u3067\u3001\u30c1\u30c3\u30af\u306b\u5bfe\u3057\u3066\u30a6\u30a9\u30c3\u30c1\u30c9\u30c3\u30af\u3059\u308b\u65b9\u6cd5\u3067\u52d5\u4f5c\u3092\u91cd\u304f\u3057\u306a\u3044\u5bfe\u7b56\u304c\u3068\u3089\u308c\u307e\u3059\u3002<br \/>\nThat&#8217;s what I actually found out. This server has an index of 1 GB (JAVA version) for 2 people. Then, TPS is capped at 20, and measures are taken to not slow things down by watchdogs against ticks.<\/p>\n<p>\u3000\u305d\u306e\u305f\u3081\u3001\u5b9f\u969b\u306b\u91cd\u304f\u3057\u306a\u3044\u305f\u3081\u306b\u306f\uff11CPU\u306e\u30b7\u30f3\u30b0\u30eb\u30b9\u30ec\u30c3\u30c9\u304c\u91cd\u8981\u3067\u3059\u3002\u30b5\u30fc\u30d0\u306b\u304a\u3044\u3066\u306f20TPS\u304c\u300116\u308413\u306b\u306a\u3063\u305f\u3060\u3051\u3067\u3061\u3087\u3063\u3068\u5acc\u306a\u611f\u3058\u306b\u306a\u308a\u3001\u305d\u304f\u5bfe\u7b56\u5bfe\u8c61\uff08\u30e2\u30d6\u6d88\u3057\uff09\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\nTherefore, a single thread of 1 CPU is important in order not to make it really heavy. On the server, 20 TPS just becomes 16 or 13, and it feels a little unpleasant, and it becomes a countermeasure target (mob-erasing).<\/p>\n<p>\u3000\u7d50\u5c40\u306e\u3068\u3053\u308d\u3001\uff12\uff10TPS\u306e\u4e0a\u9650\u306f\u8d85\u3048\u3089\u308c\u306a\u3044\u306e\u3067\u3001\u4f55\u3092\u3057\u3066\u3082\u30b9\u30ec\u30c3\u30c9\u306eCPU\u5360\u6709\u7387\u304c100\uff05\u306b\u306a\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002\uff08\u8d77\u52d5\u6642\u7b49\u3092\u9664\u304f\uff09<br \/>\nAfter all, the 20 TPS limit can&#8217;t be exceeded, so no matter what you do, your thread will never get 100% CPU utilization. (Except when starting up, etc.)<\/p>\n<p>\u3000nice\u3092-20\u306b\u3057\u3066\u3082\u3001CPU\u3092\u5168\u90e8\u306f\u4f7f\u3063\u3066\u306f\u304f\u308c\u307e\u305b\u3093\u3002\u3067\u3059\u304b\u3089\u3001CPU\u3092\u6709\u52b9\u306b\u4f7f\u3063\u3066\u91cd\u304f\u3057\u306a\u3044\u305f\u3081\u306b\u306f\u3001\u307f\u3093\u306a\u3092\u5206\u6563\u3055\u305b\u308b\u3088\u3046\u306b\u3001\u30b5\u30fc\u30d0\u3092\u5206\u3051\u308b\u5fc5\u8981\u304c\u3042\u308b\u308f\u3051\u3067\u3059\u3002<br \/>\nEven if you set nice to -20, it doesn&#8217;t use all the CPU. Therefore, in order to effectively use the CPU and not make it heavy, it is necessary to divide the servers so that everyone is distributed.<\/p>\n<p>\u3000\u30b3\u30f3\u30bb\u30d7\u30c8\u3068\u3057\u3066\u306f\u3001\u30af\u30ea\u30a8\u30a4\u30c6\u30a3\u30d6\u7cfb\u306e\u30b5\u30fc\u30d0\u3067\u3059\u3002<br \/>\n\u3000\u4e00\u756a\u91cd\u3044\u306e\u306f\u3001\u98db\u884c\u6a5f\u3067\u306e\u30c1\u30e3\u30f3\u30af\u306b\u306a\u308a\u307e\u3059\u3002\u524d\u3082\u3063\u3066\u5927\u304d\u306a\u7bc4\u56f2\u306f\u66f8\u304d\u51fa\u3057\u3066\u304a\u304d\u307e\u3059\u304c\u3001\u6642\u901f600Km\/h\u3067\u306f\u9593\u306b\u5408\u3044\u307e\u305b\u3093\u3002\u3067\u3059\u304b\u3089\u3001\u3053\u308c\u3092\u6271\u3046\u30b5\u30fc\u30d0\u306f\u3001\u4e00\u756a\u65e9\u3044\u3001\u305d\u3057\u3066\u307b\u304b\u306e\u30de\u30c3\u30d7\u306e\u304a\u4e16\u8a71\u3092\u3057\u306a\u304f\u3066\u3088\u3044\u3088\u3046\u306b\u3057\u307e\u3059\u3002<br \/>\nConceptually, this is a creative server.<br \/>\nThe heaviest are the chunks that the server creates on the plane when flying the plane. A wide range is cached in advance, but at 600Km\/h it leaves the range in tens of seconds. So the server handling this should be the fastest and shouldn&#8217;t have to worry about other maps.<\/p>\n<p>\u3000\u305d\u3053\u3067\u3001\u6700\u901f\u306e\u3082\u306e\u306ei7-6700HQ\u306b\u306f\u30012\u3064\u306ePaperMC\u30b5\u30fc\u30d0\u3067\u30011\u3064\u3081\u304c\u98db\u884c\u6a5f\u5c02\u7528\u3001\u3082\u30461\u3064\u306f\u63a2\u691c\u7528\uff08\u30cf\u30fc\u30c9\u30e2\u30fc\u30c9\uff09\u3067\u3059\u3002<br \/>\n\u30002\u3064\u76ee\u306e\u30b5\u30fc\u30d3\u30b9\u306f\u3001\u4f4f\u51e6\u7528\u3068\u5de5\u5834\u7528\u3067\u3059\u3002\u3053\u308c\u306b\u306f\u4eba\u304c\u591a\u304f\u304b\u304b\u308f\u3063\u3066\u3082\u3001\u5927\u304d\u306a\u52d5\u304d\u306f\u306a\u3044\u306e\u3067\u3001\u3042\u307e\u308aCPU\u306e\u529b\u91cf\u306f\u5fc5\u8981\u3067\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u3002i5-3750m\uff08\u305f\u3060\u3057\u3001\u6614\u306a\u304c\u3089\u306a\u306e\u3067TDP\u304c\u5927\u304d\u304f\u610f\u5916\u3068\u65e9\u3044\uff09\u306e\u30b5\u30fc\u30d0\u306b1\u53f0\u306ePaperMC\u30b5\u30fc\u30d0\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\nThe second service is for residential and factory use. Even if many people are involved in this, there are no major movements, so I don&#8217;t think much CPU power is required. I made one PaperMC server for i5-3750m (however, because it is old-fashioned, TDP is large and faster) server.<\/p>\n<p>\u3000\u30a4\u30f3\u30d9\u30f3\u30c8\u30ea\u7528\u3001\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u7528\u306eSQL\u30b5\u30fc\u30d0\u306f\u3001\u9045\u3044PC\u306b\u4efb\u305b\u307e\u3057\u305f\u3002SQL\u306f\u53e4\u3044\u8a00\u8a9e\u306a\u306e\u3067\u79c1\u306f\u3068\u3066\u3082\u82e6\u624b\u3067\u3057\u305f\u304c\u3001\u4f55\u3068\u304b\u5b66\u3073\u307e\u3057\u305f\u3002<br \/>\n\u3000\u3000The SQL server for inventory and permissions was left to a slow PC. SQL is an old language and I&#8217;m not very good at it, but I managed to learn it.<\/p>\n<p>\u3000\u8352\u3044\u8abf\u6574\u3068\u7d44\u307f\u3064\u3051\u306f\u7d42\u308f\u3063\u305f\u306e\u3067\u3001\u30cd\u30c3\u30c8\u304b\u3089\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u4f55\u304b\u3057\u305f\u3068\u304d\u306b\u554f\u984c\u304c\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u30ac\u30fc\u30c9\u95a2\u4fc2\u3092\u8a2d\u5b9a\u3057\u306a\u304a\u3055\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3067\u3057\u3087\u3046\u3002\u3084\u3084\u9762\u5012\u3067\u3059\u304c\u3001\u606f\u5b50\u3068\u697d\u3057\u304f\u904a\u3076\u305f\u3081\u3067\u3082\u3042\u308a\u307e\u3059\u3002<br \/>\nNow that the rough adjustment and assembly is over, we will ensure that there are no problems when users from the net do something. You will have to reconfigure the guard relationship. It&#8217;s a bit of a hassle, but it&#8217;s also a way to have fun with my son.<\/p>\n<p>\u3000\u3042\u3068\u3067\u3001\u5165\u3063\u3066\u3044\u308b\u30d7\u30e9\u30b0\u30a4\u30f3\u3001\u30c7\u30fc\u30bf\u30d1\u30c3\u30af\u306e\u7d39\u4ecb\u3068\u3001MariaDB\u306b\u3064\u3044\u3066\u306e\u308f\u304b\u308a\u3084\u3059\u3044\u7d39\u4ecb\u306eWeb\u30da\u30fc\u30b8\u3092\u3053\u3053\u306b\u66f8\u304d\u8cb7\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\nLater, I will write a Web page that introduces the included plug-ins and data packs, and an easy-to-understand introduction to MariaDB.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u5b9f\u969b\u306b\u308f\u304b\u3063\u305f\u3068\u3053\u308d\u3067\u3059\u3002\u3053\u306e\u30b5\u30fc\u30d0\u3067\u306f2\u540d\u3067\uff11GB\uff08JAVA\u7248\uff09\u3068\u3044\u3046\u6307\u6a19\u304c\u3042\u308b\u3053\u3068\u3002\u305d\u308c\u304b\u3089\u3001TPS\u304c20\u304c\u4e0a\u9650\u3067\u3001\u30c1\u30c3\u30af\u306b\u5bfe\u3057\u3066\u30a6\u30a9\u30c3\u30c1\u30c9\u30c3\u30af\u3059\u308b\u65b9\u6cd5\u3067\u52d5\u4f5c\u3092\u91cd\u304f\u3057\u306a\u3044\u5bfe\u7b56\u304c\u3068\u3089\u308c\u307e\u3059\u3002 That&#8217;s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1717,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,7],"tags":[],"class_list":["post-1782","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-minecraft","category-7"],"_links":{"self":[{"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/posts\/1782","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1782"}],"version-history":[{"count":2,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/posts\/1782\/revisions"}],"predecessor-version":[{"id":1784,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/posts\/1782\/revisions\/1784"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=\/wp\/v2\/media\/1717"}],"wp:attachment":[{"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mifmif.mydns.jp\/masterkudo\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}