Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Applications\photoviewer.dll]
[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell]
[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\open]
"MuiVerb"="@photoviewer.dll,-3043"
[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\open\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,\
6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,\
00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,00,65,00,73,00,\
25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,50,00,68,00,6f,\
00,74,00,6f,00,20,00,56,00,69,00,65,00,77,00,65,00,72,00,5c,00,50,00,68,00,\
6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,65,00,72,00,2e,00,64,00,6c,00,6c,\
00,22,00,2c,00,20,00,49,00,6d,00,61,00,67,00,65,00,56,00,69,00,65,00,77,00,\
5f,00,46,00,75,00,6c,00,6c,00,73,00,63,00,72,00,65,00,65,00,6e,00,20,00,25,\
00,31,00,00,00
[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\open\DropTarget]
"Clsid"="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}"
[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\print]
"NeverDefault"=""
[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\print\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,\
6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,\
00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,00,65,00,73,00,\
25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,50,00,68,00,6f,\
00,74,00,6f,00,20,00,56,00,69,00,65,00,77,00,65,00,72,00,5c,00,50,00,68,00,\
6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,65,00,72,00,2e,00,64,00,6c,00,6c,\
00,22,00,2c,00,20,00,49,00,6d,00,61,00,67,00,65,00,56,00,69,00,65,00,77,00,\
5f,00,46,00,75,00,6c,00,6c,00,73,00,63,00,72,00,65,00,65,00,6e,00,20,00,25,\
00,31,00,00,00
[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\print\DropTarget]
"Clsid"="{60fd46de-f830-4894-a628-6fa81bc0190d}"
As title, It is a memo of my daily work, it won't be very detail but enough to retrieve what I have to.
Thursday, November 23, 2017
Friday, August 25, 2017
Saturday, August 19, 2017
Have fun with Java Memory Tuning
First, by default JVM 1.8 setting, this program metaspace never over 20M, Old Gen never over 80M, Suvivor just around 6M - 24M.
With New Space can bump up to 1.4G, shows this Java Program create many objects for only a very short time and won't last for long. As it is a client program, GC time actually VS memory usage, we can sacrifice some GC time for much less memory as 1.4G is really large.
1st try:
-XX:MaxHeapSize=256M -XX:MaxMetaspaceSize=64M -XX:MetaspaceSize=24M -XX:NewRatio=2 -XX:CompressedClassSpaceSize=16M -XX:-UseParallelGC
Not bad, with doubled GC pause but I only use 1/5 memory
2nd try:
-XX:MaxHeapSize=128M -XX:MaxMetaspaceSize=64M -XX:MetaspaceSize=24M -XX:MaxNewSize=96M -XX:NewRatio=2 -XX:SurvivorRatio=14 -XX:CompressedClassSpaceSize=16M -XX:-UseParallelGC
Not bad, with 4 times GC pause but I only use 1/10 memory, acceptable since it is just a client program.
3rd try:
-XX:MaxHeapSize=64M -XX:MaxMetaspaceSize=64M -XX:MetaspaceSize=24M -XX:MaxNewSize=32M -XX:NewRatio=2 -XX:SurvivorRatio=3 -XX:CompressedClassSpaceSize=16M -XX:-UseParallelGC
Not good, dramatically increased to 2.3 seconds GC pause, 64M seems really a little over :)
Keep trying difference 256MB allocation.
Thursday, August 3, 2017
Install EtherVPN on Ubuntu Server 16.04 LTS
http://www.softether-download.com/en.aspx?product=softether
wget http://www.softether-download.com/files/softether/v4.22-9634-beta-2016.11.27-tree/Linux/SoftEther_VPN_Server/64bit_-_Intel_x64_or_AMD64/softether-vpnserver-v4.22-9634-beta-2016.11.27-linux-x64-64bit.tar.gz
su -
apt-get install make gcc zlibc tar gzip openssl libreadline6 ncurses-bin ncurses-base ncurses-term libncurses5 libpthread-workqueue0
tar xzvf softether-vpnserver-v4.22-9634-beta-2016.11.27-linux-x64-64bit.tar.gz
cd vpnserver/
make
1
1
1
cd ~
mv vpnserver /usr/local
cd /usr/local/vpnserver/
chmod 600 *
chmod 700 vpncmd
chmod 700 vpnserver
./vpncmd
3
check
exit
cd /etc/init.d/
vi vpnserver
#!/bin/sh
### BEGIN INIT INFO
# Provides: vpnserver
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 1
# Short-Description: SoftEther VPN Server
### END INIT INFO
DAEMON=/usr/local/vpnserver/vpnserver
LOCK=/var/lock/subsys/vpnserver
test -x $DAEMON || exit 0
case "$1" in
start)
$DAEMON start
touch $LOCK
;;
stop)
$DAEMON stop
rm $LOCK
;;
restart)
$DAEMON stop
sleep 3
$DAEMON start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit 0
chmod 755 /etc/init.d/vpnserver
update-rc.d vpnserver defaults
update-rc.d vpnserver enable
PS: Remember to enable Secure NAT/Virtual DHCP in order for VPN to work
wget http://www.softether-download.com/files/softether/v4.22-9634-beta-2016.11.27-tree/Linux/SoftEther_VPN_Server/64bit_-_Intel_x64_or_AMD64/softether-vpnserver-v4.22-9634-beta-2016.11.27-linux-x64-64bit.tar.gz
su -
apt-get install make gcc zlibc tar gzip openssl libreadline6 ncurses-bin ncurses-base ncurses-term libncurses5 libpthread-workqueue0
tar xzvf softether-vpnserver-v4.22-9634-beta-2016.11.27-linux-x64-64bit.tar.gz
cd vpnserver/
make
1
1
1
cd ~
mv vpnserver /usr/local
cd /usr/local/vpnserver/
chmod 600 *
chmod 700 vpncmd
chmod 700 vpnserver
./vpncmd
3
check
exit
cd /etc/init.d/
vi vpnserver
#!/bin/sh
### BEGIN INIT INFO
# Provides: vpnserver
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 1
# Short-Description: SoftEther VPN Server
### END INIT INFO
DAEMON=/usr/local/vpnserver/vpnserver
LOCK=/var/lock/subsys/vpnserver
test -x $DAEMON || exit 0
case "$1" in
start)
$DAEMON start
touch $LOCK
;;
stop)
$DAEMON stop
rm $LOCK
;;
restart)
$DAEMON stop
sleep 3
$DAEMON start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit 0
chmod 755 /etc/init.d/vpnserver
update-rc.d vpnserver defaults
update-rc.d vpnserver enable
PS: Remember to enable Secure NAT/Virtual DHCP in order for VPN to work
Saturday, July 15, 2017
Friday, July 14, 2017
Purging old data from the database used by vCenter Server (1025914)
https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1025914
Thursday, July 6, 2017
UCS KVM Java 1.7/1.8
After upgrading either UCS CIMC or Java Version, you will find you have problems opening KVM Console using Java like following errors
Unable to load resource https://myserver.com:443/software/avcNuova.jar
After numerous tests, I found the following settings could allow JRE 1.7 U80 open those KVM consoles (with quite a number of warning boxes to click though)
Unable to load resource https://myserver.com:443/software/avcNuova.jar
After numerous tests, I found the following settings could allow JRE 1.7 U80 open those KVM consoles (with quite a number of warning boxes to click though)
Friday, June 16, 2017
Disk Cleanup Wizard addon lets users delete outdated Windows updates (WINSXS) on Windows 7 SP1 or Windows Server 2008 R2 SP1
https://support.microsoft.com/en-hk/help/2852386/disk-cleanup-wizard-addon-lets-users-delete-outdated-windows-updates-on-windows-7-sp1-or-windows-server-2008-r2-sp1
You can download update patches in above link
You can download update patches in above link
Sunday, May 14, 2017
Slow Shutdown/Reboot after Windows 10 Update to 1706
Especially when using SSD, previously like 2 seconds now become 3 minutes or more.
1. Update all Intel/Display/Sound card drivers.
2. Double check Windows doesn't change page file location from SSD to HDD.
3. Disable ClearPageFileAtShutdown
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]
"ClearPageFileAtShutdown"=dword:00000000
After the above 3 steps, my Windows 10 shutdown speed resumed normal.
1. Update all Intel/Display/Sound card drivers.
2. Double check Windows doesn't change page file location from SSD to HDD.
3. Disable ClearPageFileAtShutdown
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]
"ClearPageFileAtShutdown"=dword:00000000
After the above 3 steps, my Windows 10 shutdown speed resumed normal.
Subscribe to:
Posts (Atom)