# Facing issue with proxy on AE Cloud? Let’s check it!

**URL:** <https://community.automationedge.com/t/facing-issue-with-proxy-on-ae-cloud-let-s-check-it/2233>\
**Category:** Self-Help & Learn\
**Tags:** rpa, article\
**Created:** [June 16, 2020, 12:35pm UTC](https://community.automationedge.com/t/facing-issue-with-proxy-on-ae-cloud-let-s-check-it/2233 "2020-06-16T12:35:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aesupport](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.automationedge.com/aesupport/32/371_2.png) [@aesupport](https://community.automationedge.com/u/aesupport)\
**Post date:** [June 16, 2020, 12:35pm UTC](https://community.automationedge.com/t/facing-issue-with-proxy-on-ae-cloud-let-s-check-it/2233/1 "2020-06-16T12:35:57Z")

</div>

# **Facing issue with proxy on AE Cloud? Let’s check it!**

**Version:** AutomationEdge _4.0 to 5.3.0._

> **What to do?**

Edit the scripts as per platform (Windows/Linux) and set proxy server details (text highlighted as **bold** ) and then restart Agent/Process Studio.

> **Let’s begin**

**_`Windows (process-studio.bat)`_**

> …
> 
> REM \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> REM \*\* Set java runtime options \*\*  
> REM \*\* Change 2048m to higher values in case you run out of memory \*\*  
> REM \*\* or set the PROCESS\_STUDIO\_DI\_JAVA\_OPTIONS environment variable \*\*  
> REM \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
> 
> **SET PROXY\_DETAILS=“-Dhttp.proxyHost=xxx” “-Dhttp.proxyPort=xxx”**
> 
> if “%PROCESS\_STUDIO\_DI\_JAVA\_OPTIONS%”==“” set PROCESS\_STUDIO\_DI\_JAVA\_OPTIONS=“-Xms1024m” “-Xmx2048m” “-XX:MaxPermSize=256m” **%PROXY\_DETAILS%**
> 
> …

**_`Windows (Agent’s startup.bat)`_**

> …
> 
> **SET PROXY\_DETAILS=“-Dhttp.proxyHost=xxx” “-Dhttp.proxyPort=xxx”**
> 
> %JAVACMD% %JAVA\_OPTS% -Xms1024m -Xmx2048m **%PROXY\_DETAILS%** -classpath %CLASSPATH% -Daeagent.home=“%BASEDIR%” -Dapp.name=“aeagent” -Dapp.repo=“%REPO%” -Dapp.home=“%BASEDIR%” -Dbasedir=“%BASEDIR%” -Duser.dir=“%BASEDIR%” com.automationedge.aeagent.AgentMain %CMD\_LINE\_ARGS%
> 
> …
> 
> • In case of HTTP proxy:  
> SET PROXY\_DETAILS=“-Dhttp.proxyHost=xxx” “-Dhttp.proxyPort=xxx”  
> • In case of HTTPS proxy:  
> SET PROXY\_DETAILS=“-Dhttps.proxyHost=xxx” “-Dhttps.proxyPort=xxx”  
> • In case of HTTP proxy with authentication:  
> SET PROXY\_DETAILS=“-Dhttp.proxyHost=xxx” “-Dhttp.proxyPort=xxx” “-Dhttp.proxyUser=xxx” “-Dhttp.proxyPassword=xxx”  
> • In case of HTTPS proxy with authentication:  
> SET PROXY\_DETAILS=“-Dhttps.proxyHost=xxx” “-Dhttps.proxyPort=xxx” “-Dhttps.proxyUser=xxx” “-Dhttps.proxyPassword=xxx”

**_`Linux/Mac (process-studio.sh)`_**

> …
> 
> #\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> #\*\* Set java runtime options \*\*  
> #\*\* Change 2048m to higher values in case you run out of memory \*\*  
> #\*\* or set the PROCESS\_STUDIO\_DI\_JAVA\_OPTIONS environment variable \*\*  
> #\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
> 
> **PROXY\_DETAILS=“-Dhttp.proxyHost=xxx -Dhttp.proxyPort=xxx”**
> 
> if [-z “$PROCESS\_STUDIO\_DI\_JAVA\_OPTIONS”]; then  
> PROCESS\_STUDIO\_DI\_JAVA\_OPTIONS="-Xms1024m -Xmx2048m **$PROXY\_DETAILS**"  
> Fi
> 
> …

**_`Linux/Mac (Agent’s startup.sh)`_**

> …
> 
> **PROXY\_DETAILS=“-Dhttp.proxyHost=xxx -Dhttp.proxyPort=xxx”**
> 
> exec “$JAVACMD” $JAVA\_OPTS -Xms1024m -Xmx2048m **$PROXY\_DETAILS**   
> -classpath “$CLASSPATH”   
> -Daeagent.home=“$BASEDIR”   
> -Dapp.name=“aeagent”   
> -Dapp.pid=“$$”   
> -Dapp.repo=“$REPO”   
> -Dapp.home=“$BASEDIR”   
> -Dbasedir=“$BASEDIR”   
> -Duser.dir=“$BASEDIR”   
> com.automationedge.aeagent.AgentMain   
> “$@” \> /dev/null 2\>&1 &
> 
> …  
> • In case of HTTP proxy:  
> PROXY\_DETAILS=“-Dhttp.proxyHost=xxx -Dhttp.proxyPort=xxx”  
> • In case of HTTPS proxy:  
> PROXY\_DETAILS=“-Dhttps.proxyHost=xxx -Dhttps.proxyPort=xxx”  
> • In case of HTTP proxy with authentication:  
> PROXY\_DETAILS=“-Dhttp.proxyHost=xxx -Dhttp.proxyPort=xxx -Dhttp.proxyUser=xxx -Dhttp.proxyPassword=xxx”  
> • In case of HTTPS proxy with authentication:  
> PROXY\_DETAILS=“-Dhttps.proxyHost=xxx -Dhttps.proxyPort=xxx -Dhttps.proxyUser=xxx -Dhttps.proxyPassword=xxx”

**Important Note:** _ **“xxx”** _ _needs to be replaced by appropriate values from the respective environment_
