May 20, 2010

Java Client Cache auf Terminal Server

Java Client Cache auf Terminal Server

Problembeschreibung:

Wenn die Profilgrössenbeschränkung von Benutzern auf einem Terminal Server auf einen niedrigen Wert (z.B 30 MB) eingestellt ist, kann es vorkommen, dass das Profil schnell überfüllt ist. Der Grund dafür ist der Java Cache der für jeden Benutzer im Roaming Profil gespeichert wird.

Lösung (zentraler Java Cache für alle Benutzer)

  1. Schreib Rechte für %SystemDrive%\Windows\Temp für alle Domain Users erteilen
  2. Den Ordner %SystemDrive%\Windows\Sun\Java\Deployment erstellt falls nicht vorhanden
  3. %UserProfile%\Application Data\Sun\Java\Deployment bei allen Usern löschen (wird neu erstellt beim ersten Besuch eine Java Seite)
  4. In diesem Ordner 2 Dateien anlegen

    deployment.config (Evtl. Laufwerkbuchstabe ändern

    [code]
    deployment.system.config=file\:C\:\\WINDOWS\\Sun\\Java\\Deployment\\deployment.properties
    deployment.system.config.mandatory=true
    [/code]

    deployment.properties (Evtl. Laufwerkbuchstabe ändern und Java Version!)
    [code]
    #
    deployment.cache.max.size=1000m
    deployment.cache.max.size.locked
    #
    deployment.javaws.splash.cache=C\:\\WINDOWS\\TEMP\\Java\\javaws\\cache\\splashes\\splash.xml
    deployment.javaws.splash.cache.locked
    #
    deployment.javaws.cachedir=C\:\\WINDOWS\\TEMP\\JAVA\\javaws\\cache
    deployment.javaws.cachedir.locked
    #
    deployment.javaws.cache.dir=C\:\\WINDOWS\\TEMP\\JAVA\\javaws\\cache
    deployment.javaws.cache.dir.locked
    #
    deployment.user.cachedir=C\:\\WINDOWS\\Temp\\JAVA\\cache
    deployment.user.cachedir.locked
    #
    deployment.user.tmp=C\:\\WINDOWS\\Temp\\JAVA\\tmp
    deployment.user.tmp.locked
    #
    deployment.system.cachedir=C\:\\WINDOWS\\Temp\\JAVA\\cache
    deployment.system.cachedir.locked
    #
    #deployment.browser.vm.mozilla=false
    #deployment.browser.vm.mozilla.locked
    #
    #deployment.browser.vm.iexplorer=false
    #deployment.browser.vm.iexplorer.locked
    #
    deployment.javaws.shortcut=NEVER
    deployment.javaws.shortcut.locked
    #
    deployment.proxy.type=3
    deployment.proxy.type.locked
    #
    deployment.javaws.autodownload=NEVER
    deployment.javaws.autodownload.locked
    #
    deployment.javapi.jre.1.6.0_18.args=-Xmx192M
    [/code]

September 11, 2009

tail für Windows

Wer hatte nicht auch schon das Bedürfnis ein Logfile “live” anzeigen zu lassen um es nicht ständig neu zu öffnen. Entwickler und diejenigen, die sich mit WSUS beschäftigen wissen wovon ich spreche.
Um den Windows Server Update Services zu troubleshooten muss ständig das Logfile in C:\Windows\WindowsUpdate.log neu geöffnet werden um Errormeldungen anzuschauen.

Unter Linux gibt es ein tolles Tool, mitdem man Textfiles live anschauen kann, bis Ctrl+C gedrückt wird. Dieses Tool heisst tail mit dem Switch -f werden neue Einträge im File kontinuierlich angezeigt.

Wäre doch auch gut für Windows? Gibt es!

GUI

Tail for Win32
mTail
WinTail

Command Line

Windows Server 2003 Resource Kit Tools (getestet auf Server 2008 und Windows 7!)

C:\Users\pri>tail /?
usage: TAIL [switches] [filename]*
switches: [-?] display this message
[-n] display last n lines of each file (default 10)
[-f filename] keep checking filename for new lines

September 3, 2009

Video konvertieren auf einem 8 Core System

by Phil — Categories: IT, Windows — Tags: , , , , , , , Leave a comment

Videos konvertieren kann eine ziemlich langwierige Geschichte sein. Da die Hosting Platform, welche ich betreibe nachhezu unausgelastet ist dachte ich mir, wieso nicht mal eine 8 Core Virtual Machine erstellen und ein bisschen Spass haben. Gesagt, getan: das Resultat war überwältigend!

Für den gleichen Film auf meinem Pentium 4 3200 zu konvertieren (20 Stunden) brauchte ich auf dem 8 Core System 2 Stunden.

Screenshot 8 Core Converting

Original Format:

General
Complete name : H:\HD\test.mkv
Format : Matroska
File size : 4.37 GiB
Duration : 1h 37mn
Overall bit rate : 6 416 Kbps
Writing application : x264.exe
Writing library : mkv2rls v1.0

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 5 frames
Muxing mode : Container profile=Unknown@4.1
Codec ID : V_MPEG4/ISO/AVC
Duration : 1h 37mn
Bit rate : 4 778 Kbps
Nominal bit rate : 4 903 Kbps
Width : 1 280 pixels
Height : 544 pixels
Display aspect ratio : 2.35:1
Frame rate : 24.000 fps
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.286
Stream size : 3.26 GiB (74%)
Writing library : x264 core 67 r1148 400740b
Encoding settings : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=7 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=6 / nr=0 / decimate=1 / mbaff=0 / bframes=3 / b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=3 / wpredb=1 / keyint=250 / keyint_min=25 / scenecut=40 / rc=2pass / bitrate=4903 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.00

Audio
ID : 2
Format : DTS
Format/Info : Digital Theater Systems
Codec ID : A_DTS
Duration : 1h 37mn
Bit rate mode : Constant
Bit rate : 1 510 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Surround: L R, LFE
Sampling rate : 48.0 KHz
Resolution : 24 bits
Stream size : 1.03 GiB (24%)
Title : German DTS 1509kbps
Language : German

Konvertiert:

General
Complete name : H:\HD\ps3\test.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 2.16 GiB
Duration : 1h 37mn
Overall bit rate : 3 163 Kbps
Encoded date : UTC 1970-01-01 00:00:00
Tagged date : UTC 1970-01-01 00:00:00
Writing application : Lavf52.32.0

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L3.0
Format settings, CABAC : Yes
Format settings, ReFrames : 2 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1h 37mn
Bit rate mode : Variable
Bit rate : 2 992 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 23.976 fps
Minimum frame rate : 4.795 fps
Maximum frame rate : 23.976 fps
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.135
Stream size : 2.04 GiB (95%)
Language : English
Encoded date : UTC 1970-01-01 00:00:00
Tagged date : UTC 1970-01-01 00:00:00

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Format settings, SBR : No
Codec ID : 40
Duration : 1h 37mn
Bit rate mode : Variable
Bit rate : 165 Kbps
Channel(s) : 2 channels
Channel positions : L R
Sampling rate : 48.0 KHz
Resolution : 16 bits
Stream size : 115 MiB (5%)
Language : German
Encoded date : UTC 1970-01-01 00:00:00
Tagged date : UTC 1970-01-01 00:00:00

© 2012 Phils Blog All rights reserved - Wallow theme v0.46.5 by ([][]) TwoBeers - Powered by WordPress - Have fun!