If I want to ESB and API Manager in the same machine to which server I should set the CARBON_HOME? IF setting CARBON_HOME for one server is enough?
No need to set CARBON_HOME. You only need to set is JAVA_HOME. When carbon server starts up it automatically assigns it to its path. If you set CARBON_HOME manually you won't be able to run multiple servers on the same machine. If you have already set, remove it.
No need of setting CARBON_HOME but you must give different offsets inWSO2_SERVER_HOME/repository/conf/carbon.xml in each wso2 server.
<Offset>1</Offset>
default value is 0
CARBON_HOME Term means that your current servers directory.You can think of Just like JAVA_HOME. You can have one server in one machine by changing the port offset in carbon.xml located in HOME/repository/conf/carbon.xml
Related
I'm using an IISnode instance to host the Fastboot server on my Windows IIS server.
The old version of the fastboot server, Ember-fastboot-server allowed me to set a port number when running the server:
https://github.com/ember-fastboot/fastboot
The port needed is available at process.env.port when hosting on IISnode.
In the new FastbootAppServer, this apparently isn't possible. How would I go about setting the port number?
It looks as if the new version of FastbootAppServer (new relative to ember-fastboot-server) is making use of Node clusters. Node clusters aren't supported in IISnode. I believe the solution is to either have a node based hosting solution or go with a middleware solution (eg. Express).
I am using new Mars 2 with esb tooling. I have added an local esb server with a carbon offset of 5. When I start run the server it starts correctly but the offset 5 does not have any impact none of the ports are incremented.
Starting the esb server from cmd works fine with offset.
Anyone else faced the same issue?
Here is the screen shot of the step while adding new server to eclipse, and I am giving the offset as 5. But when i start the server it starts on the 9443.
The screen you have attached, actually reads values from configuration files inside ESB and populates accordingly. So if you want an offset to your ports, then you should first change the following in <ESB_HOME>/repository/conf/carbon.xml
<Offset>4</Offset>
There after if you load the server configuration, you will see the Carbon server offset correctly reflecting as you have specified as below. The developer studio does not write values to files rather reads values from the them. So if a change is required to the default values, they should be first changed in the respective file.
New server dialog box
I have to install both WSO2 ESB and API manager server in same development server. But always get Port already in use exception. I think that caused by the two apps using same JVM.
Could anyone please shed me light on proper configuration to make two server working tighter?
When you run multiple WSO2 products/clusters or multiple instances of the same product on the same server or virtual machines (VMs), you must change their default ports with an offset value to avoid port conflicts. An offset defines the number by which all ports in the runtime (e.g., HTTP/S ports) will be increased. For example, if the default HTTP port is 9763 and the offset is 1, the effective HTTP port will change to 9764. For each additional WSO2 product instance, you set the port offset to a unique value. The offset of the default ports is considered to be 0.
There are two ways to set an offset to a port:
Pass the port offset to the server during startup. The following
command starts the server with the default port incremented by
3:./wso2server.sh -DportOffset=3
Set the Ports section of <PRODUCT_HOME>/repository/conf/carbon.xml.
E.g., <Offset>3</Offset>
Refer Changing the Default Ports with Offset
I made a change in JVM Arguments and now the application server won't start. Can I edit the JVM arguments manually outside from the CF administrator and if yes, how? If a "manuall override" is not possible how can I remove the last entry that I added to the JVM in order to be able to start my app server again?
P.S: I am on a Win-Server machine.
Check for the file jvm.config in the bin directory from where you start the server. It contains the JVM arguments to be set for the server.
I would like to monitor my application server application using WSO2 BAM. Intially I
didn't change the BAM offset address, keep it as by default(ie offset 0) and I changed the
application server offset as 2. It seems some problem to show. If I change the offset of BAM
server as 2. How can I change the cassandra.port address. I mean the location of the file in BAM 2.2.0 server.
Thanks
Cassandra port can be changed from wso2bam-2.2.0/repository/conf/etc/cassandra-component.xml.
But if you change BAM offset to 2, it automatically increases Cassandra port as well, unless you have enabled
<!--Nodes>localhost:9160</Nodes-->
entry in cassandra-component.xml.
If Lakmali's answer is not working properly apply the port offsets in,
All Hive scripts, if port numbers are used inside them. (Make sure you use DROP TABLE command before each Hive table's CREATE command, if you update the script in the same BAM pack without extracting a fresh pack.)
Cassandra port numbers in wso2bam-2.2.0/repository/conf/datasources/master-datasources.xml file.