I am running Servoy 5.2 / Sybase 10 on a (OS X Server) Mac. I also have two Servoy 6 / postgres solutions in development. Currently I have put the Servoy 6 solutions on a separate computer with a separate port and port forwarding. This works well, however it would be useful to know whether I can put both servers onto the same main machine. They would be running different databases, and on different ports. Is this possible?
Thanks all
Bevil
because you also use 2 databases engine it should be pretty simple
just change the http port (application_server\conf\server.xml file) from 8080 to 8081
and also change the rmi port to 1200 when the server is started up.
Thank you Johan. I will give it a try…
![Smile :)]()
Bevil
You will also need to change the shutdown port (first line of /application_server/server/conf/server.xml):
i don’t think Bevil will ever shutdown the application server anyway ![Wink ;)]()
Yeah… Pro tip, once something is running - anything at all, leave it the f*** alone… Never shut it down…
I can’t actually get this to work though, Postgres will not start on the new server. I did copy the directory (with all the port settings applied to the xml file etc. already working)
Do I need to actually install Servoy on the new server rather than copy the directory ? The directory cannot be named Servoy in my Applications folder because I already have the Sybase one…
![Smile :)]()
Is one machine 32-bit and the other 64-bit (or vice versa)? (can’t copy the data dir then, need to backup/restore)
Did you check the PostgreSQL log to see why it doesn’t start ?
Urgh… That was it, it is a CoreDuo, not a Core2Duo, and they are 32 and 64 bit respectively… Dammit…
Okay, I will re-install Servoy 6 on the target machine…
Never turn it off… ![Smile :)]()
Hmm…but you never installed a 64-bit PostgreSQL…correct ?
This is just the Servoy PostgreSQL installation ? Or did you use another installer (like the EDB one).
If it’s the Servoy one then both installs are 32-bit. So do check the postgres log (always do that) why it doesn’t start.
Hey Robert
It was just the Servoy installer on a 32 bit machine.
I’m checking the log now… 2 mins
This is what the Postgres log says…
FATAL: could not create shared memory segment: Invalid argument
DETAIL: Failed system call was shmget(key=5432001, size=4366336, 03600).
HINT: This error usually means that PostgreSQL’s request for a shared memory segment exceeded your kernel’s SHMMAX parameter. You can either reduce the request size or reconfigure the kernel with larger SHMMAX. To reduce the request size (currently 4366336 bytes), reduce PostgreSQL’s shared_buffers parameter (currently 300) and/or its max_connections parameter (currently 34).
If the request size is already small, it’s possible that it is less than your kernel’s SHMMIN parameter, in which case raising the request size or reconfiguring SHMMIN is called for.
The PostgreSQL documentation contains more information about shared memory configuration.
What OS is this ? And how much RAM in the machine ?
OS X 10.6.7 Server
4GB RAM
Hi Bevil,
Can you post here the output of the following terminal command:
grep kern.sysv /etc/sysctl.conf
xserve-001e52f246a8:application_server administrator$ grep kern.sysv /etc/sysctl.conf
grep: /etc/sysctl.conf: No such file or directory
Can you run the following in terminal:
sudo nano /etc/sysctl.conf
Type in your root password when requested
Then paste in the following:
kern.sysv.shmmax=536870912
kern.sysv.shmmin=1
kern.sysv.shmmni=128
kern.sysv.shmseg=32
kern.sysv.shmall=131072
Hit CTRL-O and enter to save the file.
Hit CTRL-X to exit the application.
Now reboot the server.
Hi Robert
I have done all of that, and checked that grep kern.sysv /etc/sysctl.conf is there and contains what you sent.
Still the same problem though, and still the same error in the log.
![Sad :(]()
Should I just install Servoy properly, rather than trying to copy?
Thank you for your help.
Bevil
Hi Bevil,
And you rebooted the server ?
Can you post the exact error ?
Hi Johan
These port numbers are just suggestions, right? I can also take 1109 for rmi as 1200 is reserved for scol.
jcompagner:
because you also use 2 databases engine it should be pretty simple
just change the http port (application_server\conf\server.xml file) from 8080 to 8081
and also change the rmi port to 1200 when the server is started up.
Regards,