タグ

nativeに関するkimutanskのブックマーク (7)

  • Instant Netty Startup using GraalVM Native Image Generation

    In this article we demonstrate how you can achieve instant startup for Netty, a non-blocking I/O Java networking framework. We do this by compiling the Netty application into a native executable with GraalVM. First we discuss why we think this is important, then we detail what steps are necessary to enable ahead-of-time compilation of Java bytecode, and finally we show how to do it on a sample Net

    Instant Netty Startup using GraalVM Native Image Generation
    kimutansk
    kimutansk 2018/05/23
    GraalVMのAOTコンパイルで起動速度とフットプリント大きく改善するものの、クラスロードメモリダイレクトアクセスやらで大制約が出て、どう対処するかの話。何か一回りしてきた感はあります
  • Native Memory Tracking in 7u40 – Marcus Hirt

    Since we don’t have any nice NMT (Native Memory Tracking) MBean in HotSpot (yet), and therefore not in the JMC console, I thought I’d show how it can be done using command line arguments and JCMD. Please note that you’ll get a 5-10% performance hit if you enable this. Step 1 – Enabling NMT This is done by using the following command line: -XX:NativeMemoryTracking=[off|summary|detail] Where the dif

    kimutansk
    kimutansk 2016/12/30
    OffHeapは見た感じPooled/Internal/Unknownですかね。候補となりそうなのは。あとは実際試してみるしかありませんか。
  • ネイティブ・メモリー・トラッキング

    ネイティブ・メモリー・トラッキング(NMT)は、Java HotSpot VMの内部メモリー使用状況を追跡するJava HotSpot VM機能です。NMTのスコープ、NMTを有効にする方法、およびその他の使用の詳細は、ネイティブ・メモリー・トラッキングを参照してください。 NMTでは、非JVMコードによるメモリーの割当てを追跡しないので、ネイティブ・コードのメモリー・リークを検出するには、オペレーティング・システムでサポートされたツールの使用が必要になる場合があります。 次の項では、VM内部メモリー割当てのモニターおよびVMメモリー・リークの診断方法について説明します。 NMTによるメモリー・リークの検出 VM内部メモリーをモニターする方法 NMTのメモリー・カテゴリ 2.7.1 NMTによるメモリー・リークの検出 メモリー・リークを検出するには、次の手順を実行します。 次のコマンドライ

    kimutansk
    kimutansk 2016/11/07
    こうやってネイティブの利用状況追えますか。OffHeapは・・Pooled Free Chunksあたり?どこに入るかが気になるところですが
  • JNR: Java Native Runtime

    JJUG Night Seminar 2015 Aug. "JNR: Java Native Runtime"Weniger lesen

    JNR: Java Native Runtime
    kimutansk
    kimutansk 2015/08/28
    JNRはこれまでのJNIと比べると確かに非常にわかりやすい。あとはProject Panamaが完成すると、Unsafeのメモリ関連はよりうまく実現できるのかも。
  • ネイティブコードを語る

    逆アセンブルを眺めながらネイティブコードの楽しさについて語ります。ハング・メモリリークなど、ソフトウェアエンジニアであればだれでも経験するであろう問題について夏休みの自由研究のように観察します。 簡単な事および伊藤園からのお茶が提供予定です。 【講演者略歴】 我孫子 泰祐 大学院にて非ノイマン型プロセッサを研究し、卒業後に小さな会社を立ち上げるも諸般の事情で日マイクロソフトに入社。その後マイクロソフト社へ転籍。現在は Windows部門にてソフトウェア開発に従事。工学博士。 【内容(予定)】 ネイティブコードとは? 逆アセンブルからCソースを脳内生成してみよう(バグ修正の存在確認) コンパイラによる最適化を観察してみよう(デバッグビルドとリリースビルド) 関数コールの仕組みを観察してみよう(関数呼び出し規約、スタックメモリ) 森の中でメモリリークに出遭ったら(ヒープメモリの観察) 森

    ネイティブコードを語る
    kimutansk
    kimutansk 2015/04/02
    滅多に使わないけど、使うかもしれない、とインデックスははっておくべき内容ですねぇ。 昔は確かにこんなコードも学びました
  • Frida • A world-class dynamic instrumentation toolkit

    Dynamic instrumentation toolkit for developers, reverse-engineers, and security researchers. Scriptable Inject your own scripts into black box processes. Hook any function, spy on crypto APIs or trace private application code, no source code needed. Edit, hit save, and instantly see the results. All without compilation steps or program restarts. Portable Works on Windows, macOS, GNU/Linux, iOS, wa

    kimutansk
    kimutansk 2014/01/13
    JavaScriptでnativeアプリをデバッグできる? ・・て。マジですか
  • OutOfMemoryError: Unable to Create New Native Thread – Problem Demystified - DZone

    kimutansk
    kimutansk 2012/10/05
    スレッド生成時にこけるパターンの解説。後はOSが設定しているスレッド数限界に引っかかる場合等もありますかね。
  • 1