2013-01-01から1年間の記事一覧
overview 開いたネットワーク(internetへ接続可能) bridgingをすればethernet/ieee802.11でもインターネット接続できそうだが未検証 qemuのuser-mode networkを利用してinternetへでる(ping to Internetはできない) router:1(10.0.2.15/24, 192.168.10.1/24,…
概要 閉じた形式のネットワーク router:1 (192.168.10.1, 192.168.20.1) network:2 (192.168.10.0/24, 192.168.20.0/24) host:4 (dhcp) vyatta.6.5での設定 ip/mac set interfaces ethernet eth1 address 192.168.10.1/24 set interfaces ethernet eth2 addr…
概要 GNS3 + Qemu + Vyattaでネットワークのシミュレーション環境を整える GNS3 (Graphical Network Simulator): Cisco Router Emulator GUI Vyatta: SW Router OS (debian-base) Dynamips: Ciso Router Emulator with text file/terminal (今回は使わない) …
CentOS6.4でKVM設定からドメインを作成する手順までのメモ. 必要なパッケージインストール $ yum install bridge-utils # bridge connectionの設定を可能にするため $ yum groupinstall Virtualization "Virtualization Client" "Virtualization Platform" …
Bufferingしながら,圧縮ファイル(gzipファイル)を書きこんで,読み込んで見るサンプル. サイズの大きいオブジェクトや書き込む配列がint size (2^31 - 1)を超えていると,bufferingしないとJVMが落ちる.前に誰かがやってて,気にになったのでやってみる.…
kill したとき1 $ java -XX:+PrintClassHistogram -XX:HeapDumpPath=/path/to/heap.dump Main $ kill -QUIT java_pid → STDOUTにはでてきた. kill したとき2 $ java -XX:+HeapDumpOnOutOfMemoryError XX:HeapDumpPath=/path/to/heap.dump Main $ kill -QUIT…
$ shutown -r now # or reboot --force で再起動できない. $ shutown -h now は動いている./etc/grub.confのkernel行に reboot=pci or reboot=acpi or reboot=biosを追加したけれどダメっぽい. $ tail -f /var/log/message rootにメールが着ていたのでそ…
defaultはparent -> child depen-onを使うと順番を逆にできる. bean def file <bean id="parent" scope="singleton" class="edu.kzk.spring_sample.init_method.Parent" init-method="init_parent" depends-on="child"> <property name="var" value="parent"/> </bean>
parentでscope="singleton"のときのメモ childのscope="singleton or prototype"でもparentのconstructorが2回呼ばれている. beanファイルを読み込んだ時 (parentがつくられたとき) beanファイルを読み込んだ時 (childがつくられたとき) parentでscope="pr…
象本参考 全体 方針 shuffleにたくさんメモリを使ってspill to diskがなるべく起こらないようにする mapreduceではなるべくメモリを使わないようにする. パラメータ mapred.child.java.opts: -Xmx200m : child JVMのメモリ mapred.tasktracker.map.tasks.ma…
jQueryをすこし触れたことがあるだけで,js自体は全然書けないので最近ちょくちょく勉強中. そこで,thisに関して???だらけだったので,メモ.オブジェクトの中で定義された関数の中で関数を定義して,その関数をいろいろなコンテキストで呼ぶことによって…
cpuに関係した簡単なメモ. CPU Central Processing Unit.最近のはコア化されている. CPU数の確認コマンド. $ cat /proc/cpuinfo | grep "physical id" | sort | uniq コア CPUの中心部. コア数の確認コマンド. $ cat /proc/cpuinfo | grep "core id" |…
今までのメモをはてな化 コマンドをはてな化. cpu概要をはてな化.
truncate ファイルのサイズを縮小、拡大 lsof すべてのオープンファイルを表示 lshw ハードウェアの情報を表示 lspci PCI buses の情報とそれらにくっついているデバイス情報を表示 strings プリントできる文字列(少なくとも4字)取り出す openssl e.g. ope…