Current state of vpsBoard 02/04/2017Dear vpsBoard members and guests:
Over the last year or two vpsBoard activity and traffic has dwindled. I have had a change of career and interests, and as such am no longer an active member of the web hosting industry.
Due to time constraints and new interests I no longer wish to continue to maintain vpsBoard. The web site will remain only as an archive to preserve and showcase some of the great material, guides, and industry news that has been generated by members, some of which I remain in contact to this very day and now regard as personal friends.
I want to thank all of our members who helped make vpsBoard the fastest growing industry forum. In it's prime it was an active and ripe source of activity, news, guides and just general off-topic banter and fun.
I wish all members and guests the very best, whether it be with your business or your personal projects.
Search the Community
Showing results for tags 'java'.
Found 4 results
For the moderators: This is my fist post on vpsBoard so I don't know if the subject belongs to this category or not, if not please move to the right one. The new DC that we are working with offered KVM to install and configuration of our nodes, it happens that they use the Lantronix Spider Duo, we are used to working with ILOs and others, and never experienced so unstable device/software, what should take minutes to do it take hours, the problems happens like this: 1)You use a browser to login and start the KVM 2)the KVM uses Java as an interface, after changing the java security you are able to connect 3)after 30 seconds of connection the java screen freezes and says at the bottom " Can't write key code Javanet socket exception socket closed. 4) then you have to close the java go back to the browser to start again 5)when you click to start the KVM the browser redirect to login page so you need to login again and this repeats several times. 6)now If you need to login to your OS when you tipe your credentials goes like that: rrrrooottt, so you press on the keyboard once and it repeats the character several times, This you can correct when you can see but you will need to type you the password to login and that you can not see and correct, so big amount of time is spent in login process, after login, the issue remains and the character has to be corrected again and again. What I don't know if it is my fault on configuring the Java, the java interface or the Lantronix itself, I'd like to know if somebody else has any experience with this issue.
I run Linux on the desktop. For a long while I kept one workstation for dealing with Java needed things. That workstation is no more as "security" blocks Java due to old version and potential for holiday at the waterpark that would ensue. Needing to run Java (yeah I hate it and always have) in browser. Anyone have a recent Linux how-to for perfecting such without losing ones mine? Any browser is fine [they all suck in their own way]. (mainly need to use this crapware for things like Proxmox and other remote control VNC shitola).... WHEN WILL THESE COMPANIES DO AWAY WITH JAVA ALL DAMN READY?
I really like Ruby but sometimes you need/want to run some Java apps on your vps. This is quite easy because you can strip down the Java VM to use quite a small amount of RAM. But if you need to support servlets, websockets, JMX or JNDI lookups you need a container, or at least a servlet container. You should not try to run the big application servers on a small vps - just by looking to the footprint of Jboss, Glassfish or Websphere. But you can easily run Jetty on a small vps. So let's install Jetty: Install Java apt-get install openjdk-7-jdk (wopping 363MB) mkdir /usr/java For 64bit: ln -s /usr/lib/jvm/java-7-openjdk-amd64 /usr/java/default For 32bit ln -s /usr/lib/jvm/java-7-openjdk-i386/ /usr/java/default Download Jetty http://download.eclipse.org/jetty/stable-9/dist/ wget http://eclipse.org/downloads/download.php?file=/jetty/stable-9/dist/jetty-distribution-9.0.5.v20130815.tar.gz&r=1 tar -xzf *.tar.gz Prepare directories and users mkdir /opt mv jetty-distribution-9.0.5.v20130815 /opt/jetty useradd jetty -U -s /bin/false chown -R jetty:jetty /opt/jetty Configure Jetty defaults nano /etc/default/jetty Contents: JAVA=/usr/bin/java # Path to Java NO_START=0 # Start on boot JETTY_HOST=127.0.0.1 # Listen to following ip JETTY_ARGS=jetty.port=8085 # Web port of jetty JETTY_USER=jetty # User to run under Configure Jetty as a service cp /opt/jetty/bin/jetty.sh /etc/init.d/jetty chmod +x /etc/init.d/jetty update-rc.d jetty defaults service jetty restart Remove demo apps (because they are not secure) cd /opt/jetty/webapps rm -rf test.d/ test.war test.xml async-rest.war rm -rf /opt/jetty/webapps.demo If you look to the footprint of Jetty: PID User Command Swap USS PSS RSS 7358 jetty /usr/bin/java -Djetty.state 37456 40388 40492 41464 no one can say that Jetty is bloated. Maybe enough to bring back some Java to your vps. PS: One Jetty based project: Bombermine. Configuration of Jetty All config files are located in "/opt/jetty/etc" /opt/jetty/etc# ls README.spnego jetty-deploy.xml jetty-jmx.xml jetty-proxy.xml jetty-spdy.xml jetty.conf spnego.conf jdbcRealm.properties jetty-http.xml jetty-logging.xml jetty-requestlog.xml jetty-ssl.xml jetty.xml spnego.properties jetty-annotations.xml jetty-https.xml jetty-lowresources.xml jetty-rewrite.xml jetty-started.xml keystore test-realm.xml jetty-debug.xml jetty-ipaccess.xml jetty-monitor.xml jetty-setuid.xml jetty-stats.xml krb5.ini webdefault.xml jetty-demo.xml jetty-jaas.xml jetty-plus.xml jetty-spdy-proxy.xml jetty-xinetd.xml realm.properties jetty-http.xml Host and port of the http port jetty-https.xml Port and certs for SSL jetty.xml All major settings like: - Thread pool <Get name="ThreadPool"> <Set name="minThreads" type="int"><Property name="threads.min" default="10"/></Set> <Set name="maxThreads" type="int"><Property name="threads.max" default="200"/></Set> <Set name="idleTimeout" type="int"><Property name="threads.timeout" default="60000"/></Set> <Set name="detailedDump">false</Set> </Get> - HTTP protocol <New id="httpConfig" class="org.eclipse.jetty.server.HttpConfiguration"> <Set name="secureScheme">https</Set> <Set name="securePort"><Property name="jetty.secure.port" default="8443" /></Set> <Set name="outputBufferSize">32768</Set> <Set name="requestHeaderSize">8192</Set> <Set name="responseHeaderSize">8192</Set> <Set name="sendServerVersion">true</Set> <Set name="sendDateHeader">false</Set> <Set name="headerCacheSize">512</Set> <!-- Uncomment to enable handling of X-Forwarded- style headers--> <Call name="addCustomizer"> <Arg><New class="org.eclipse.jetty.server.ForwardedRequestCustomizer"/></Arg> </Call> </New> Best place to set the virtual hosts: Within the war file: <Configure class="org.eclipse.jetty.webapp.WebAppContext"> <Set name="contextPath">/ibadmin</Set> <Set name="war"><Property name="jetty.webapps" default="."/>/ibadmin.war</Set> <Set name="virtualHosts"> <Array type="String"> <Item>test.wlanboy.com</Item> <Item>@ConnectorName</Item> <Item>localhost</Item> <Item>127.0.0.1</Item> </Array> </Set>