0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

netkeiba-scraperが2025年6月現在動くかの話(Ubuntu 24.04.2 LTS)

Last updated at Posted at 2025-06-20

はじめに

netkeiba-scraperが2025年6月現在、Ubuntu 24.04.2 LTS / openjdk 17.0.15 2025-04-15で動作する確認が取れました。下記は今回の前身となる6年前の記事です。

この間(6年間)、週1回ペースでこつこつと動作確認/若干の分析/研究を続けていました(!)。先日ふと「そういえば最新のJava LTSは21よね」「netkeiba-scraperはJava 8で動かしてきたはず」「EOL=2030年説もあるけど『8のまま』もいかがなものか(『座して腐食』は技術者として避けたい...stockedgeさんのほんとよくできたコード(*'▽'))」と考えました。

そこでまず21で試行しました。結果、エラーが出ました(今回は深追いしない)。次に、21でダメなら1個下の17では――と思い試行したところ、さらっと動きました。それでご報告といった次第です。

総じて

上記を総じて、今回わざわざ記事を起こす意図/ポイントは「公開当初(10年前(!))はJava 8だったと思います。それが(ソースコードはそのまま)17で動きます」です。

動作環境

Ubuntu

$ cat /etc/issue
Ubuntu 24.04.2 LTS \n \l

java

$ java -version
openjdk version "17.0.15" 2025-04-15
OpenJDK Runtime Environment Temurin-17.0.15+6 (build 17.0.15+6)
OpenJDK 64-Bit Server VM Temurin-17.0.15+6 (build 17.0.15+6, mixed mode, sharing)

sbt

$ sbt --version
sbt runner version: 1.11.2

free

$ free
               total        used        free      shared  buff/cache   available
Mem:         8131312     2643604      960836       39416     4880460     5487708
Swap:              0           0           0

付記/備考

メモリ8GBのVPSで動かしています。2.2GB程度の安定的なメモリ消費で処理が回っているようです。

--
簡単ですが、以上です。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?