Mostrando entradas con la etiqueta eclipse. Mostrar todas las entradas
Mostrando entradas con la etiqueta eclipse. Mostrar todas las entradas

viernes, 2 de enero de 2015

...How to automatically install JBoss Developer Studio 8 + Integration Stack

As I usually install JBDS and the Integration Stack several times in my machine or in virtual environments, I ended up creating a script to automate the installation process. There are two variants of the scripts, one forJBDS 7 and another for JBDS 8.
This script only requires that you have JBoss Developer Studio downloaded (as it is a protected download) and in the same location as the script, and it will then:
  • Install JBDS in the location you specify
  • Configure Java Runtime to use
  • Install JBoss Integration Stack (Full install of Integration tools)
To execute the script just run:
$ ./install.sh
These are the default values that will be used for the installation:
  • JBDS_BINARY - Current value=jboss-devstudio-8.0.0.GA-v20141020-1042-B317-installer-standalone.jar
  • INSTALL_PATH - Current value=/tmp/jbdevstudio
  • JAVA_HOME - Current value=/usr/java/latest
And can be specified, either by modifying the script (not recommended) or by setting the values in the shell, either exporting them:
$ export JAVA_HOME=/usr/jvm/java7
$ export INSTALL_PATH=/home/jmorales/jbdevstudio8
$ ./intall.sh
Or in the same line:
$ JAVA_HOME=/usr/jvm/java7 INSTALL_PATH=/home/jmorales/jbdevstudio8 ./intall.sh
Now what is left is:
  1. Update automatically from JBDS 8 to JBDS 8.0.1 (Only available as update site)
  2. Update automatically the Integration Stack
  3. Install only the IS parts you want (SwitchYard for example)

viernes, 24 de octubre de 2014

...make JBDS faster for SwitchYard

While working with SwitchYard, JBoss Developer Studio can be a pain in the ass. Red Hat is working to provide some better user experience, but in the meantime, you can try some of these tips.

Increase heap memory

Eclipse needs a lot of memory, and maven and SwitchYard projects even more, so provide with a good amount of it to your eclipse. Modify jbdevstudio.ini in the appropiate section:
-vmargs
-XX:MaxPermSize=256m
-Xms2G
-Xmx2G
-XX:-UseParallelGC
-XX:+AggressiveOpts
-XX:-UseConcMarkSweepGC
Provide a good amount of memory, so if you can give 3 or 4 GBs instead of 2 better.

Disable automatic updates

Faster startup time. You’ll update or check for updates whenever you want.
Preferences --> Automatic updates --> (Disable) Automatically find new updates and notify me

Disable auto build

If you build whenever you want, the project you want, then disable. If you have a big ammount of projects you can skip having eclipse doing background building all the time. If you have few projects, you can keep it.
Project --> Build automatically (Uncheck)

Refresh workspace on startup

If you don’t do things on command line, then your workspace should be refreshed. If you use git (command line) or maven (command line) maybe you want to keep it:
General -> Startup and shutdown -> Refresh workspace on startup (Enable)

Disable validations

If you there is a lot of background task processing gone on validating your project (due to any facet your project has, like JPA, …​)
Validation -> Suspend all validations (check)

Disable startup features not needed (FUSE, …​)

Use the fewer plugins needed for your work.
General -> Startup & shutdown ->  Plugins activated on Startup (Remove FUSE, Fabric8, JBoss Central, Forge UI, JBoss Tools reporting, Equinox autoupdate)

Disable XML Honour schemas

There is a known bug in JBDS and SwitchYard, so avoid it with:
XML -> XML Files -> Validation -> Honour all XML schema locations (uncheck)

Close JPA and EAR projects if not working on them

Every project that you have opened is both, eating resources and having to be check with the background tasks, so close them if not needed (as dependencies or at all)